compiler error ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compiler error ?

yincanben
I complied the newest version,But I get some error like that:

/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::infoFromROS(const Info&, rtabmap::Statistics&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:178:29: error: ‘const Info’ has no member named ‘currentGoalId’
  stat.setCurrentGoalId(info.currentGoalId);
                             ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::infoToROS(const rtabmap::Statistics&, rtabmap_ros::Info&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:208:8: error: ‘rtabmap_ros::Info’ has no member named ‘currentGoalId’
   info.currentGoalId = stats.currentGoalId();
        ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::mapDataFromROS(const MapData&, std::map<int, rtabmap::Transform>&, std::multimap<int, rtabmap::Link>&, std::map<int, rtabmap::Signature>&, rtabmap::Transform&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:304:22: error: ‘const MapData’ has no member named ‘graph’
  mapGraphFromROS(msg.graph, poses, links, mapToOdom);
                      ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::mapDataToROS(const std::map<int, rtabmap::Transform>&, const std::multimap<int, rtabmap::Link>&, const std::map<int, rtabmap::Signature>&, const rtabmap::Transform&, rtabmap_ros::MapData&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:320:45: error: ‘rtabmap_ros::MapData’ has no member named ‘graph’
  mapGraphToROS(poses, links, mapToOdom, msg.graph);
                                             ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘rtabmap::Signature rtabmap_ros::nodeDataFromROS(const NodeData&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:462:10: error: ‘const NodeData’ has no member named ‘laserScanMaxRange’
      msg.laserScanMaxRange,
          ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:472:10: error: ‘const NodeData’ has no member named ‘laserScanMaxRange’
      msg.laserScanMaxRange,
          ^
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘void rtabmap_ros::nodeDataToROS(const rtabmap::Signature&, rtabmap_ros::NodeData&)’:
/home/ycb15/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:497:6: error: ‘rtabmap_ros::NodeData’ has no member named ‘laserScanMaxRange’
  msg.laserScanMaxRange = signature.sensorData().laserScanMaxRange();
      ^
make[2]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Reply | Threaded
Open this post in threaded view
|

Re: compiler error ?

matlabbe
Administrator
For some reasons, the ROS messages are not regenerated. As you can see here, currentGoalId exists for rtabmap_ros/Info message.

Try cleaning the build directory to force rosmake to generate again the messages.

cheers