36 import roslib; roslib.load_manifest(
'joint_trajectory_action_tools')
40 from trajectory_msgs.msg
import JointTrajectoryPoint
43 joint_space_goal = JointTrajectoryGoal()
44 joint_names = rospy.get_param(ns +
"/joint_names")
45 joint_space_goal.trajectory.joint_names = joint_names
46 waypoints = rospy.get_param(ns +
"/waypoints")
47 for waypoint
in waypoints:
48 joint_space_goal.trajectory.points.append(JointTrajectoryPoint(positions = waypoint[0], velocities = waypoint[1], accelerations = waypoint[2], time_from_start = rospy.Duration(waypoint[3])))
50 return joint_space_goal