MRPT / mvsim

Vehicle and mobile robotics simulator. C++ & Python API. Use it as a standalone application or via ROS 1 or ROS 2
https://mvsimulator.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
289 stars 43 forks source link

The codes have some error #1

Closed askkl closed 9 years ago

askkl commented 9 years ago

after installed ,i can't roslaunch the demo,then installed from sources,i met this 'CMakeFiles/mvsim_node.dir/mvsim_node_src/mvsim_node.cpp.o: In function MVSimNode::MVSimVisitor_notifyROSWorldIsUpdated::visit(mvsim::WorldElementBase*)': mvsim_node.cpp:(.text+0xe25): undefined reference tomrpt_bridge::convert(mrpt::maps::COccupancyGridMap2D const&, nav_msgs::OccupancyGrid_std::allocator&)' CMakeFiles/mvsim_node.dir/mvsim_node_src/mvsim_node.cpp.o: In function MVSimNode::MyWorld::onNewObservation(mvsim::VehicleBase const&, mrpt::obs::CObservation const*)': mvsim_node.cpp:(.text+0x1457): undefined reference tomrpt_bridge::convert(mrpt::obs::CObservation2DRangeScan const&, sensor_msgs::LaserScan_std::allocator&, geometry_msgs::Pose_std::allocator&)''

the codes are 'void MVSimNode::MyWorld::onNewObservation( const mvsim::VehicleBase &veh,

if MRPT_VERSION>=0x130

const mrpt::obs::CObservation* obs

else

const mrpt::slam::CObservation* obs

endif

)'

but i don't know how to do

jlblancoc commented 9 years ago

What version of ROS are you using? Why you should not roslaunch the demo?

Also: try uninstalling ros-*-mrpt-bridge and also compiling mrpt_navigation from sources, since it seems that it is the problem. I'll mark this as closed unless it still fails, ok?