[ros-users] Diamond Back vs source install. STD_MSG header issue

Markus Eich markus.eich at dfki.de
Thu May 12 12:26:28 UTC 2011


Dear all,


I migrated from the Diamond back package install to the source install 
(due to the usage of Natty 11.04)

Everything works fine except I have the following problem. In our old 
code I accessed the header of a message by using the following lines:

====
void RosNode::someCallback(const sensor_msgs::PointCloud::ConstPtr& msg){


*buffer->addHeader(msg->header);

}
=====


When i now compile the code, I get a deprecated error from the 
"std_msgs/header_deprecated_def.h" file:

====
/home/eich/dev/crawler_plugin_stack/ros_crawler_plugin/src/RosNode.cpp:754:36: 
instantiated from here
/home/eich/ros/ros_comm/messages/std_msgs/include/std_msgs/header_deprecated_def.h:23:5: 
warning: ‘roslib::Header_<ContainerAllocator>::Type& 
roslib::Header_<ContainerAllocator>::operator=(const 
std_msgs::Header_<ContainerAllocator>&) [with ContainerAllocator = 
std::allocator<void>, roslib::Header_<ContainerAllocator>::Type = 
roslib::Header_<std::allocator<void> >]’ is deprecated (declared at 
/home/eich/ros/ros_comm/messages/std_msgs/include/std_msgs/header_deprecated_def.h:26)
====

How can I now get the complete header from my ros messages? Is there 
something I overlooked?


Cheers,

Markus




-- 
Dipl. Inf. Markus Eich
Researcher

DFKI Bremen
Robotics Innovation Center
Mary-Somerville-Str. 9
28359 Bremen, Germany

Phone: +49 (0)421 17845-4105
Fax:   +49 (0)421 17845-4150
E-Mail: markus.eich at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------




More information about the ros-users mailing list