2019/03/11

    result

    #!/usr/bin/env python# license removed for brevity import rospyfrom std_msgs.msg import UInt16MultiArrayfrom std_msgs.msg import UInt16 pub = rospy.Publisher('control',UInt16MultiArray,queue_size=10)cmd_vel = UInt16MultiArray()cmd_vel.data = [0,0] def callback1(msg): rospy.loginfo(msg.data[0]) cmd_vel.data[0] = msg.data[0] cmd_vel.data[1] = msg.data[1] pub.publish(cmd_vel) def callback2(msg): cm..