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

How do I install sensor_msgs package?

asked 2012-01-22 17:41:29 -0500

Hyon Lim gravatar image

updated 2012-01-22 17:43:29 -0500

Hi, all. I would like to use hokuyo_node in Gumstix with Ubuntu. To this end, I installed ROS on Gumstix by native build. The hokuyo_node needs 8 dependencies, so I downloaded sensor_msgs package which is one of the dependencies of hokuyo_node.

$ svn checkout $ rospack profile $ rosmake sensor_msgs

However, it shows "No makefile". So I created one dummy package using "roscreate-pkg" and copy Makefile to sensor_msgs from newly created dummy package.

However, it shows "no cmake_minimum_required" so I added following.

cmake_minimum_required(VERSION 2.8.0)

Then, I do rosmake again, then it shows following.

Unknown CMake command "catkin_project"

Do you know why?

Note that, I installed ROS with very basics, so there is no sensor_msgs package in default.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-01-22 19:37:07 -0500

Lorenz gravatar image

You shouldn't use the version from trunk unless you are involved in the development of the package. Which distribution did you install? Electric? Then use the following svn command to check out the complete stack common_msgs:

svn co common_msgs
edit flag offensive delete link more


This works! Thanks very much.
Hyon Lim gravatar image Hyon Lim  ( 2012-01-22 21:04:28 -0500 )edit
Note that you are checking out the `common_msgs` stack, not just the `sensor_msgs` package. While some packages may work on their own, the stack is the ROS unit for release and install.
joq gravatar image joq  ( 2012-01-23 00:55:24 -0500 )edit

answered 2012-01-22 19:35:24 -0500

Hansg91 gravatar image

updated 2012-01-22 19:36:06 -0500

You could try the following commands:

roslocate info sensor_msgs > /tmp/sensor_msgs.rosinstall
rosinstall ~/ros /tmp/sensor_msgs.rosinstall

Assuming ~/ros is your ros workspace.

EDIT: And if you don't have rosinstall, check here.

edit flag offensive delete link more


It is first to know roslocate command. Thank you very much!
Hyon Lim gravatar image Hyon Lim  ( 2012-01-22 21:04:58 -0500 )edit
The command should be `roslocate info --distro=electric sensor_msgs`. Otherwise you will end up with trunk again.
Lorenz gravatar image Lorenz  ( 2012-01-22 21:06:59 -0500 )edit
it is not necessary to install. If you have installed ros electric full, you should have installed that package. You only have to execute rosmake to have the access to that messages. In the past I had that problems with ROSJava. it is easy. Cheers
Juan Antonio Breña Moral gravatar image Juan Antonio Breña Moral  ( 2012-01-24 09:42:27 -0500 )edit

Question Tools


Asked: 2012-01-22 17:41:29 -0500

Seen: 10,300 times

Last updated: Jan 22 '12