Cartographer_ros: An error occurred while executing the "rosservice call /finish_trajectory 0"

Created on 27 Mar 2019  Â·  4Comments  Â·  Source: cartographer-project/cartographer_ros

I run demo_backpack_2d.launch successfully.(_roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=${HOME}/Downloads/cartographer_paper_deutsches_museum.bag_
)
when i run "_rosservice call /finish_trajectory 0_" to save the map ,an error occured.
ERROR: Unable to load type [cartographer_ros_msgs/FinishTrajectory].
Have you typed 'make' in [cartographer_ros_msgs]?

I build and install cartographer_ros according to The official reference:https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html#building-installation
I want to know how to solve this problem or how to save map.

Most helpful comment

1078 [(https://github.com/googlecartographer/cartographer_ros/issues/1078)]

this issue provides the solution.if you follow the official document to compiling cartographer_ros successfully,you need to do is source before calling service.

All 4 comments

You probably didn't build cartographer_ros_msgs which is a sub package of cartographer_ros.

Thanks for your response.Actually i know this ERROR means cartographer_ros_msgs didn't build,but i don't know why and i just follow official document.I would appreciate if you give me some advice about how to rebuild cartographer_ros_msgs.

I can't say more because I don't use the catkin_make_isolatedcommands written in the documentation (I use catkin build).

But maybe someone else or one of the maintainers can help.

1078 [(https://github.com/googlecartographer/cartographer_ros/issues/1078)]

this issue provides the solution.if you follow the official document to compiling cartographer_ros successfully,you need to do is source before calling service.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

musi00 picture musi00  Â·  5Comments

cccstudy picture cccstudy  Â·  6Comments

ojura picture ojura  Â·  5Comments

cagataysari picture cagataysari  Â·  6Comments

alexbaucom17 picture alexbaucom17  Â·  7Comments