Ask Your Question
0

rosmsg wont show message??

asked 2015-01-30 11:39:50 -0500

215 gravatar image

I at moment trying to learn about ROS using the guide provided by this page. Up until now it has been running fine, but for some reason i am not getting the same output as i was supposed to here

http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv#Using_rosmsg

The output i receive is this

Unable to load msg [beginner_tutorials/Num]: Cannot locate message [Num]: unknown package [beginner_tutorials] on search path [{'rosconsole': ['/opt/ros/indigo/share/rosconsole/msg'], 'catkin': ['/opt/ros/indigo/share/catkin/msg'], 'angles': ['/opt/ros/indigo/share/angles/msg'], 'image_view': ['/opt/ros/indigo/share/image_view/msg'], 'carrot_planner': ['/opt/ros/indigo/share/carrot_planner/msg'], 'urdf': ['/opt/ros/indigo/share/urdf/msg'], 'rosgraph': ['/opt/ros/indigo/share/rosgraph/msg'], 'rqt_py_console': ['/opt/ros/indigo/share/rqt_py_console/msg'], 'nodelet_topic_tools': ['/opt/ros/indigo/share/nodelet_topic_tools/msg'], 'rqt_graph': ['/opt/ros/indigo/share/rqt_graph/msg'], 'rotate_recovery': ['/opt/ros/indigo/share/rotate_recovery/msg'], 'theora_image_transport': ['/opt/ros/indigo/share/theora_image_transport/msg'], 'rocon_python_comms': ['/opt/ros/indigo/share/rocon_python_comms/msg'], 'qt_gui': ['/opt/ros/indigo/share/qt_gui/msg'], 'filters': ['/opt/ros/indigo/share/filters/msg'], 'ecl_exceptions': ['/opt/ros/indigo/share/ecl_exceptions/msg'], 'navfn': ['/opt/ros/indigo/share/navfn/msg'], 'dwa_local_planner': ['/opt/ros/indigo/share/dwa_local_planner/msg'], 'rosgraph_msgs': ['/opt/ros/indigo/share/rosgraph_msgs/msg'], 'smclib': ['/opt/ros/indigo/share/smclib/msg'], 'ecl_devices': ['/opt/ros/indigo/share/ecl_devices/msg'], 'rocon_gateway_utils': ['/opt/ros/indigo/share/rocon_gateway_utils/msg'], 'roscpp_serialization': ['/opt/ros/indigo/share/roscpp_serialization/msg'], 'rqt_rviz': ['/opt/ros/indigo/share/rqt_rviz/msg'], 'rosbuild': ['/opt/ros/indigo/share/rosbuild/msg'], 'qt_gui_cpp': ['/opt/ros/indigo/share/qt_gui_cpp/msg'], 'rosauth': ['/opt/ros/indigo/share/rosauth/msg'], 'tf': ['/opt/ros/indigo/share/tf/msg'], 'rqt_publisher': ['/opt/ros/indigo/share/rqt_publisher/msg'], 'roslang': ['/opt/ros/indigo/share/roslang/msg'], 'geometric_shapes': ['/opt/ros/indigo/share/geometric_shapes/msg'], 'kobuki_driver': ['/opt/ros/indigo/share/kobuki_driver/msg'], 'smach_ros': ['/opt/ros/indigo/share/smach_ros/msg'], 'genlisp': ['/opt/ros/indigo/share/genlisp/msg'], 'map_server': ['/opt/ros/indigo/share/map_server/msg'], 'interactive_markers': ['/opt/ros/indigo/share/interactive_markers/msg'], 'dynamic_reconfigure': ['/opt/ros/indigo/share/dynamic_reconfigure/msg'], 'ecl_containers': ['/opt/ros/indigo/share/ecl_containers/msg'], 'diagnostic_aggregator': ['/opt/ros/indigo/share/diagnostic_aggregator/msg'], 'ecl_license': ['/opt/ros/indigo/share/ecl_license/msg'], 'smart_battery_msgs': ['/opt/ros/indigo/share/smart_battery_msgs/msg'], 'robot_state_publisher': ['/opt/ros/indigo/share/robot_state_publisher/msg'], 'visualization_msgs': ['/opt/ros/indigo/share/visualization_msgs/msg'], 'diagnostic_updater': ['/opt/ros/indigo/share/diagnostic_updater/msg'], 'ecl_streams': ['/opt/ros/indigo/share/ecl_streams/msg'], 'resource_retriever': ['/opt/ros/indigo/share/resource_retriever/msg'], 'rqt_topic': ['/opt/ros/indigo/share/rqt_topic/msg'], 'smach': ['/opt/ros/indigo/share/smach/msg'], 'ecl_mpl': ['/opt/ros/indigo/share/ecl_mpl/msg'], 'stdr_parser': ['/opt/ros/indigo/share/stdr_parser/msg'], 'ecl_math': ['/opt/ros/indigo/share/ecl_math/msg'], 'rqt_action': ['/opt/ros/indigo/share/rqt_action/msg'], 'rqt_top': ['/opt/ros/indigo/share/rqt_top/msg'], 'rosbridge_server': ['/opt/ros/indigo/share/rosbridge_server/msg'], 'diagnostic_msgs': ['/opt/ros/indigo/share/diagnostic_msgs/msg'], 'move_base': ['/opt/ros/indigo/share/move_base/msg'], 'rosboost_cfg': ['/opt/ros/indigo/share/rosboost_cfg/msg'], 'genmsg': ['/opt/ros/indigo/share/genmsg/msg'], 'xacro': ['/opt/ros/indigo/share/xacro/msg'], 'turtle_tf2': ['/opt/ros/indigo/share/turtle_tf2/msg'], 'rqt_robot_dashboard': ['/opt/ros/indigo/share/rqt_robot_dashboard/msg'], 'pluginlib': ['/opt/ros ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-01-30 12:18:20 -0500

ahendrix gravatar image

It looks like the ROS tools can't find your beginner_tutorials package.

  • You should make sure that you've sourced the devel/setup.bash in your workspace
  • You should make sure that your package is named beginner_tutorials
  • You can check that ROS can find your package with rospack find beginner_tutorials
edit flag offensive delete link more

Comments

It will not rospack find the package/directory eventhoug it inside of it. i tried source devel/setup.bash it just say that such file doesn't exist.

215 gravatar image215 ( 2015-01-30 12:38:52 -0500 )edit

Is your package in a catkin workspace? The devel folder should be in the top level of your workspace, and the setup.bash should be generated when you run catkin_make.

ahendrix gravatar imageahendrix ( 2015-02-02 12:11:35 -0500 )edit

workspace is made by using catkin_init_workspace, and catkin_make. I have been getting the right output from the previous sections of the tutorials... But this section doesn't seem to be correct..

215 gravatar image215 ( 2015-02-03 11:21:18 -0500 )edit

i don't know if it help but here is my workspace.. My workspace is given here.. https://www.dropbox.com/s/dud6uwhmmxf...

215 gravatar image215 ( 2015-02-03 13:18:19 -0500 )edit

You have two copies of the beginner_tutorials package in your workspace; one at the top level (wrong) and one inside the src folder (right). ROS cannot find any packages that exist outside of the src folder in your workspace.

ahendrix gravatar imageahendrix ( 2015-02-03 16:44:36 -0500 )edit

exactly... Problem fixed.

215 gravatar image215 ( 2015-02-03 17:13:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-01-30 11:39:50 -0500

Seen: 783 times

Last updated: Jan 30 '15