EgoPose¶
- class mobrob_behcon.connectors.egopose.EgoPose(ros_topic)[source]¶
The class EgoPose
Represents a connector to the positioning topics of the robot. Provides a function to get the current pose of the robot.
Methods
__init__
(ros_topic)constructor
callbackOdometry
(msg)callback function for topics of type nav_msgs/Odometry
callbackPose
(msg)callback function for topics of type myrobot_model/Pose
Get current pose of robot
Get current time in milliseconds
Details
- __init__(ros_topic)[source]¶
constructor
- Parameters
ros_topic (string) – possible topics are ‘/pose’ (myrobot_model/Pose) or ‘/odom’ (nav_msgs/Odometry)
- callbackOdometry(msg)[source]¶
callback function for topics of type nav_msgs/Odometry
- Parameters
msg – receiving message
- callbackPose(msg)[source]¶
callback function for topics of type myrobot_model/Pose
- Parameters
msg – receiving message