ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It was mistake with declaration the object of class Path(), it was global, so, path object was not rewrited, path data was appending every cycle of Rate. correct source:
#...
from geometry_msgs.msg import Pose
def cartesian_to_path(x, y):
path = Path()
path.header.frame_id = 'odom'
path.header.stamp = rospy.Time.now()
#...
#...