-
Notifications
You must be signed in to change notification settings - Fork 103
Added missing transform of start and target pose in planner implementations #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JustusBraun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amock if you agree with the comments I can do the implementation (or let copilot try it :D)
mesh_map/src/mesh_map.cpp
Outdated
|
|
||
| // we shouldn't catch/ignore the error that comes from here, as it indicates a misconfiguration | ||
| const geometry_msgs::msg::TransformStamped Tim = tf_buffer.lookupTransform( | ||
| mapFrame(), input_pose.header.frame_id, input_pose.header.stamp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This transform lookup uses a timeout of 0 seconds by default, which will fail immediately if there is latency with the localization e.g. on a real robot. We could either make the timeout configurable using a MeshNav wide parameter every plugin can read, or expose the timeout in the MeshMap::transformToMapFrame method and pass the responsibility to the calling plugin.
| { | ||
| // This planner requires start and goal pose to be in map frame | ||
| const geometry_msgs::msg::PoseStamped start_in_map = mesh_map_->transformToMapFrame(start); | ||
| const geometry_msgs::msg::PoseStamped goal_in_map = mesh_map_->transformToMapFrame(goal); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should catch the transform errors here to prevent MeshNav from crashing and return an error code
…navigation into fix/transform-planner
|
Tested it with Ubuntu 24 and ROS Jazzy. Works with proper error msg etc. 👍 |

This change fixes #94. I tested it with a script that sets poses 1m in front of the robot (in base_footprint frame).