gazebo msgs
I want to publish a gazebo_msgs ( topic) NOT service using .cpp code as a node I wrote the code, but I dont know what to add in the Cmakelist in these sections:
find_package(catkin REQUIRED COMPONENTS
nav_msgs
roscpp
...../// what should I write here
}
// second
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES rosaria_nav
CATKIN_DEPENDS message_runtime nav_msgs roscpp sensor_msgs ***gazebo_msgs***
// is it right ?????
# DEPENDS system_lib
)
// third
generate_messages(
DEPENDENCIES
geometry_msgs sensor_msgs nav_msgs visualization_msgs gazebo_msgs
)
// forth
I added the following
add_executable(SetModelState src/SetModelState.cpp)
add_dependencies(SetModelState ${PROJECT_NAME}_gencfg ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(SetModelState
${catkin_LIBRARIES}
${Boost_LIBRARIES}
)
//fifth in the .cpp file ( the node ), I added the following library
#include <gazebo_msgs/SetModelState.h>