Set start position of robot within amcl
Hi, I'm working with a mobile robot. Every time I start it I have to start at the same point(the point which is the origin in the map_server map config file). But I want to save the last position of the base_link(to a file for example, no problem with that) when I shutdown the system to let him know at restarting where it was. Is there any way to set a default value for a transform beetween 2 frames with tf2?
Thank you
This is not really anything to do with the TF2 system, but the localisation system that is being used on the robot. There will probably be a method to set the initial pose of the robot there.
do you use your own localisation system, or something provided as debian pkg, like
amcl
? If you let us know, we can help more.Yes, sorry, I use amcl localisation system with a front laser.
FYI: I took the liberty of rephrasing your question to better reflect the actual problem.