def send_cmd(self, joint_pos): jj = JointJog() jj.header.stamp = rospy.Time.now() jj.joint_names = ['joint_{}'.format(i) for i in range(len(joint_pos))] jj.deltas = list(map(float, joint_pos)) self._pub.publish(jj)