ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here is a way,
write a subscriber for the topic '/robot_pose' with following callback_function. `
import rospy
from rospy import logdebug
from geometry_msgs.msg import Pose
def get_tf_pose_callback(pose):
logdebug("robot is at : {0}".format(pose.position))
if __name__ == '__main__':
rospy.Subscriber("robot_pose", Pose, get_tf_pose_callback)
rospy.spin()
` 4. rosrun your node.