Skip to content

Commit

Permalink
Added service calls for local carrot planner
Browse files Browse the repository at this point in the history
  • Loading branch information
artzha committed Dec 16, 2024
1 parent f594871 commit 20781da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ if(${ROS_VERSION} EQUAL "1")
SET(ROS_BUILD_STATIC_LIBS true)
SET(ROS_BUILD_SHARED_LIBS false)

# Set the directory for message and service files
FILE(GLOB_RECURSE MSG_FILES msg/*.msg)
FILE(GLOB_RECURSE SRV_FILES srv/*.srv)

ROSBUILD_GENMSG()
ROSBUILD_GENSRV()

# Install generated message headers
INSTALL(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/msg_gen/cpp/include/
DESTINATION include
)
elseif(${ROS_VERSION} EQUAL "2")
message(STATUS "Compiling with ROS2 COLCON")
find_package(ament_cmake REQUIRED)
Expand Down Expand Up @@ -52,6 +62,7 @@ elseif(${ROS_VERSION} EQUAL "2")
"srv/graphNavGPSSrv.srv"
"srv/ObjectDetectionSrv.srv"
"srv/SocialPipsSrv.srv"
"srv/CarrotPlannerSrv.srv"
"action/TurtlebotDock.action"
DEPENDENCIES sensor_msgs geometry_msgs nav_msgs std_msgs
)
Expand Down
4 changes: 4 additions & 0 deletions srv/CarrotPlannerSrv.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
geometry_msgs/PoseStamped carrot
---
std_msgs/Bool success
nav_msgs/Path path

0 comments on commit 20781da

Please sign in to comment.