Skip to content

Commit 0f256c5

Browse files
committed
added contact sensor dependencies
1 parent a04fdbc commit 0f256c5

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

champ_gazebo/CMakeLists.txt

+30-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,41 @@
22
cmake_minimum_required(VERSION 2.8.3)
33
project(champ_gazebo)
44

5-
find_package(catkin REQUIRED COMPONENTS)
5+
add_compile_options(-std=c++11)
66

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+
)
822

923
install(PROGRAMS
1024
scripts/imu_sensor.py
1125
scripts/joints_controller.py
1226
scripts/odometry_tf.py
1327
scripts/odometry.py
1428
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} )

champ_gazebo/package.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
<license>BSD</license>
1111

1212
<buildtool_depend>catkin</buildtool_depend>
13+
<depend>roscpp</depend>
14+
<depend>champ</depend>
15+
<depend>champ_msgs</depend>
1316
<exec_depend>roslaunch</exec_depend>
1417
<exec_depend>gazebo_ros</exec_depend>
1518
<exec_depend>gazebo_ros_pkgs</exec_depend>
1619
<exec_depend>gazebo_ros_control</exec_depend>
1720
<exec_depend>gazebo_plugins</exec_depend>
1821
<exec_depend>ros_controllers</exec_depend>
19-
2022
</package>

0 commit comments

Comments
 (0)