Skip to content
Snippets Groups Projects
Commit 0e2a263a authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Normalize angle in ros conversions

parent 1fd9cb56
No related branches found
No related tags found
2 merge requests!51Fix visualization, fix human obstacles,!28Draft: Dev -> Main
......@@ -49,6 +49,8 @@ namespace armarx::navigation::conv
// we change it such that x is pointing forward.
// ROS: x pointing forward, ArmarX: y pointing forward
theta += M_PI_2;
// normalize angle
theta = g2o::normalize_theta(theta);
return {pos / 1000., theta}; // [mm] to [m]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment