Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
Egocentric polar coordinates defined as the difference between the robot pose and the target pose relative to the robot position and orientation. More...
#include <nav2_graceful_controller/include/nav2_graceful_controller/ego_polar_coords.hpp>
Public Member Functions | |
EgocentricPolarCoordinates (const float &r_in=0.0, const float &phi_in=0.0, const float &delta_in=0.0) | |
EgocentricPolarCoordinates (const geometry_msgs::msg::Pose &target, const geometry_msgs::msg::Pose ¤t=geometry_msgs::msg::Pose(), bool backward=false) | |
Construct a new egocentric polar coordinates as the difference between the robot pose and the target pose relative to the robot position and orientation, both referenced to the same frame. More... | |
Public Attributes | |
float | r |
float | phi |
float | delta |
Egocentric polar coordinates defined as the difference between the robot pose and the target pose relative to the robot position and orientation.
Definition at line 31 of file ego_polar_coords.hpp.
|
inlineexplicit |
Construct a new egocentric polar coordinates as the difference between the robot pose and the target pose relative to the robot position and orientation, both referenced to the same frame.
Thus, r, phi and delta are always at the origin of the frame.
target | Target pose. |
current | Current pose. Defaults to the origin. |
backward | If true, the robot is moving backwards. Defaults to false. |
Definition at line 54 of file ego_polar_coords.hpp.