Skip to content

Commit

Permalink
Add sensor messages as dependency for ros2
Browse files Browse the repository at this point in the history
  • Loading branch information
mandi1267 committed Apr 19, 2024
1 parent 9b206d8 commit 2193954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ elseif(${ROS_VERSION} EQUAL "2")
message(STATUS "Compiling with ROS2 COLCON")
find_package(ament_cmake REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
Expand Down Expand Up @@ -49,7 +50,7 @@ elseif(${ROS_VERSION} EQUAL "2")
"srv/ObjectDetectionSrv.srv"
"srv/SocialPipsSrv.srv"
"action/TurtlebotDock.action"
DEPENDENCIES geometry_msgs nav_msgs std_msgs
DEPENDENCIES sensor_msgs geometry_msgs nav_msgs std_msgs
)

ament_package()
Expand Down
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<depend>geometry_msgs</depend>
<depend>std_msgs</depend>
<depend>nav_msgs</depend>
<depend>sensor_msgs</depend>

<build_depend>rosidl_default_generators</build_depend>

Expand Down

0 comments on commit 2193954

Please sign in to comment.