ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ROS/Tutorials/CreatingMsgAndSrv could hep you, I think there is missing parts need to be added to your CMakeList.txt and maybe on package.xml as well.

On package.xml try adding

  <build_depend>message_generation</build_depend>
  <exec_depend>message_runtime</exec_depend>

On CMakeList.txt

  find_package(catkin REQUIRED COMPONENTS

roscpp rospy std_msgs message_generation )

add_message_files(FILES Message1.msg)

ROS/Tutorials/CreatingMsgAndSrv could hep you, I am not an expert but, I think there is are missing parts need to be added to your CMakeList.txt and maybe on package.xml as well.

On Below example is from tutorial page, hope it solves your problem! package.xml try adding

  <build_depend>message_generation</build_depend>
  <exec_depend>message_runtime</exec_depend>

On CMakeList.txt

  find_package(catkin REQUIRED COMPONENTS

roscpp rospy std_msgs message_generation message_generation )

) add_message_files( FILES
add_message_files(FILES Message1.msg)
  Robogym.msg
  )

ROS/Tutorials/CreatingMsgAndSrv could hep you, I am not an expert but, I think there are missing parts need to be added to your CMakeList.txt and maybe on package.xml as well.

Below example is from tutorial page, hope it solves your problem! problem!

package.xml

  <build_depend>message_generation</build_depend>
  <exec_depend>message_runtime</exec_depend>

CMakeList.txt

  find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  message_generation
  )

  add_message_files(
  FILES 
  Robogym.msg
  )