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

problem with common_msgs

asked 2012-11-01 05:54:00 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

when I try to build a package, I get this error:

dede@ubuntu:~/electric_workspace/sandbox/labrob_ros_quadrotor$ rosmake labrob_quadrotor_sensors . . . . In file included from /home/dede/electric_workspace/sandbox/labrob_ros_quadrotor/labrob_quadrotor_sensors/include/labrob_quadrotor_sensors/labrob_gazebo_camera.h:74:0, from /home/dede/electric_workspace/sandbox/labrob_ros_quadrotor/labrob_quadrotor_sensors/src/labrob_gazebo_camera.cpp:31: /opt/ros/electric/stacks/diagnostics/diagnostic_updater/include/diagnostic_updater/diagnostic_updater.h:47:41: fatal error: common_msgs/DiagnosticArray.h: No such file or directory compilation terminated. . . but

dede@ubuntu:~/electric_workspace/sandbox/labrob_ros_quadrotor$ sudo apt-get install ros-electric-common-msgs Reading package lists... Done Building dependency tree
Reading state information... Done ros-electric-common-msgs is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 406 not upgraded.

what can I do to solve this problem?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2012-11-01 06:23:03 -0500

Lorenz gravatar image

updated 2012-11-01 06:25:25 -0500

Very weird error. Normally, the include line in diagnostic_updater should not include common_msgs/DiagnosticArray.h but diagnostic_msgs/DiagnosticArray.h. Try reinstalling the stack diagnostics:

sudo apt-get install --reinstall ros-electric-diagnostics`
edit flag offensive delete link more
0

answered 2012-11-01 06:16:07 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The DiagnosticArray message is defined in the diagnostic_msgs package, which is contained in the common_msgs stack.

So, the reference should be to diagnostic_msgs/DiagnosticArray.h

edit flag offensive delete link more
0

answered 2012-11-01 06:22:11 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

oh perfect! thank you!

edit flag offensive delete link more

Comments

Please do not use answers for comments or discussion. This is not a forum. Instead, please either edit your original post or use the comment functionality.

Lorenz gravatar image Lorenz  ( 2012-11-01 06:25:02 -0500 )edit

Question Tools

Stats

Asked: 2012-11-01 05:54:00 -0500

Seen: 714 times

Last updated: Nov 01 '12