File tree Expand file tree Collapse file tree 4 files changed +48
-4
lines changed Expand file tree Collapse file tree 4 files changed +48
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ target_include_directories(D5Robot PUBLIC
30
30
"${CMAKE_SOURCE_DIR} /global" )
31
31
target_link_libraries (D5Robot PUBLIC RMDMotor )
32
32
target_link_libraries (D5Robot PUBLIC NatorMotor )
33
- target_link_libraries (D5Robot PUBLIC CameraTop )
33
+ target_link_libraries (D5Robot PUBLIC Camera )
34
34
35
35
# 导出 DllAPI
36
36
add_library (D5RbotApi SHARED src/DllApi.cpp )
Original file line number Diff line number Diff line change @@ -33,6 +33,5 @@ target_include_directories(GalaxyCamera PUBLIC
33
33
target_link_libraries (GalaxyCamera GxAPI )
34
34
target_link_libraries (GalaxyCamera ${OpenCV_LIBS} )
35
35
36
- # 上方相机类
37
- add_library (CameraTop src/CameraTop.cpp )
38
- target_link_libraries (CameraTop GalaxyCamera )
36
+ add_library (Camera src/CameraTop.cpp src/CameraBot.cpp )
37
+ target_link_libraries (Camera GalaxyCamera )
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * @file CameraBot.h
3
+ * @author drawal ([email protected] )
4
+ * @brief
5
+ * @version 0.1
6
+ * @date 2024-11-28
7
+ *
8
+ * @copyright Copyright (c) 2024
9
+ *
10
+ */
11
+ #pragma once
12
+ #include " GalaxyCamera.h"
13
+
14
+ namespace D5R {
15
+
16
+ class CameraBot : public GxCamera {
17
+
18
+ public:
19
+ CameraBot (std::string id);
20
+ ~CameraBot ();
21
+
22
+ private:
23
+ double _mapParam;
24
+ };
25
+ } // namespace D5R
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * @file CameraBot.cpp
3
+ * @author drawal ([email protected] )
4
+ * @brief
5
+ * @version 0.1
6
+ * @date 2024-11-28
7
+ *
8
+ * @copyright Copyright (c) 2024
9
+ *
10
+ */
11
+ #include " CameraBot.h"
12
+
13
+ namespace D5R {
14
+
15
+ CameraBot::CameraBot (std::string id) : GxCamera(id) {
16
+ _mapParam = _mapParam = 0.00945084 ;
17
+ }
18
+
19
+ CameraBot::~CameraBot () {}
20
+ } // namespace D5R
You can’t perform that action at this time.
0 commit comments