File tree 2 files changed +33
-4
lines changed
2 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 2
2
cmake_minimum_required (VERSION 2.8.3)
3
3
project (champ_gazebo)
4
4
5
- find_package (catkin REQUIRED COMPONENTS )
5
+ add_compile_options (-std=c++11 )
6
6
7
- catkin_package()
7
+ find_package (gazebo REQUIRED)
8
+
9
+ find_package (catkin
10
+ REQUIRED
11
+ COMPONENTS
12
+ roscpp
13
+ urdf
14
+ champ
15
+ champ_msgs
16
+ )
17
+
18
+ catkin_package(
19
+ CATKIN_DEPENDS
20
+ roscpp
21
+ )
8
22
9
23
install (PROGRAMS
10
24
scripts/imu_sensor.py
11
25
scripts/joints_controller.py
12
26
scripts/odometry_tf.py
13
27
scripts/odometry.py
14
28
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
15
- )
29
+ )
30
+
31
+ include_directories (
32
+ include
33
+ ${champ_INCLUDE_DIRS}
34
+ ${catkin_INCLUDE_DIRS}
35
+ ${GAZEBO_INCLUDE_DIRS}
36
+ )
37
+
38
+ link_directories (${GAZEBO_LIBRARY_DIRS} ${catkin_LIBRARIES} )
39
+ list (APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS} " )
40
+
41
+ add_executable (contact_sensor src/contact_sensor.cpp)
42
+ target_link_libraries (contact_sensor ${GAZEBO_LIBRARIES} pthread ${catkin_LIBRARIES} )
Original file line number Diff line number Diff line change 10
10
<license >BSD</license >
11
11
12
12
<buildtool_depend >catkin</buildtool_depend >
13
+ <depend >roscpp</depend >
14
+ <depend >champ</depend >
15
+ <depend >champ_msgs</depend >
13
16
<exec_depend >roslaunch</exec_depend >
14
17
<exec_depend >gazebo_ros</exec_depend >
15
18
<exec_depend >gazebo_ros_pkgs</exec_depend >
16
19
<exec_depend >gazebo_ros_control</exec_depend >
17
20
<exec_depend >gazebo_plugins</exec_depend >
18
21
<exec_depend >ros_controllers</exec_depend >
19
-
20
22
</package >
You can’t perform that action at this time.
0 commit comments