Problem with cmake files when migrating from ROS diamondback to Electric [closed]

asked 2014-10-15 16:20:33 -0500

RaianSpinelli gravatar image

Hey,

I just installed the ROS electric version and I removed the diamondback. Howerver, when I try to compile those files that were workin perfectly on Diamondback, is not working now. Basically, the main problem is that ROS is not finding the necessary headers files (.h)

For more details, please see the errors below:

/home/turtlebot/Experiment1/src/test_experiment.cpp:86: error: no matching function for call to ‘ros::NodeHandle::advertise(const char [11], int, bool)’ /home/turtlebot/Experiment1/src/test_experiment.cpp:88: error: ‘chameleon_msgs’ cannot appear in a constant-expression /home/turtlebot/Experiment1/src/test_experiment.cpp:88: error: parse error in template argument list /home/turtlebot/Experiment1/src/test_experiment.cpp:88: error: no matching function for call to ‘ros::NodeHandle::advertise(const char [10], int, bool)’ /home/turtlebot/Experiment1/src/test_experiment.cpp:89: error: ‘chameleon_msgs’ cannot appear in a constant-expression /home/turtlebot/Experiment1/src/test_experiment.cpp:89: error: parse error in template argument list /home/turtlebot/Experiment1/src/test_experiment.cpp:89: error: no matching function for call to ‘ros::NodeHandle::advertise(const char [7], int, bool)’ /home/turtlebot/Experiment1/src/test_experiment.cpp:112: error: ‘chameleon_msgs’ is not a class or namespace /home/turtlebot/Experiment1/src/test_experiment.cpp:112: error: expected ‘;’ before ‘T’ /home/turtlebot/Experiment1/src/test_experiment.cpp:113: error: ‘chameleon_msgs’ is not a class or namespace /home/turtlebot/Experiment1/src/test_experiment.cpp:113: error: expected ‘;’ before ‘Mymsg’ /home/turtlebot/Experiment1/src/test_experiment.cpp:114: error: ‘chameleon_msgs’ is not a class or namespace /home/turtlebot/Experiment1/src/test_experiment.cpp:114: error: expected ‘;’ before ‘eta’ /home/turtlebot/Experiment1/src/test_experiment.cpp:187: error: ‘Mymsg’ was not declared in this scope /home/turtlebot/Experiment1/src/test_experiment.cpp:193: error: ‘eta’ was not declared in this scope /home/turtlebot/Experiment1/src/test_experiment.cpp:245: error: ‘T’ was not declared in this scope In file included from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp_serialization/include/ros/serialization.h:37, from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/publisher.h:34, from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/node_handle.h:32, from /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/ros.h:45, from /home/turtlebot/Experiment1/src/test_experiment.cpp:1: /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp_traits/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<m>::value() [with M = int]’: /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp_traits/include/ros/message_traits.h:228: instantiated from ‘const char* ros::message_traits::md5sum() [with M = int]’ /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/subscribe_options.h:89: instantiated from ‘void ros::SubscribeOptions::initByFullCallbackType(const std::string&, uint32_t, const boost::function<void(p)&gt;&amp;, const="" boost::function<boost::shared_ptr<typename="" ros::parameteradapter<p="">::Message>()>&) [with P = int]’ /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/include/ros/node_handle.h:621: instantiated from ‘ros::Subscriber ros::NodeHandle::subscribe(const std::string&, uint32_t, void ()(M), const ros::TransportHints&) [with M = int]’ /home/turtlebot/Experiment1/src/test_experiment.cpp:94: instantiated from ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-31 12:16:17.978791

Comments

1

It looks like you might be missing the chameleon_msgs package.

ahendrix gravatar imageahendrix ( 2014-10-15 17:01:51 -0500 )edit

I've already built the package chameleon_msgs. I think it is not the problem. I think the problem is related to cmake file that was built when I was using diamondback version. Do you know how can I re-build cmake in the ROS electric?

RaianSpinelli gravatar imageRaianSpinelli ( 2014-10-15 17:21:40 -0500 )edit