示例#1
0
def callback(data):
  rospy.loginfo(rospy.get_call_id() + "I heard %s", data.data)
示例#2
0
def obstacle_callback(data):
    rospy.loginfo(rospy.get_call_id() + "obstacle_msg: ", data.data)
示例#3
0
def controller_callback(data):
    rospy.loginfo(rospy.get_call_id() + "controller_msg: ", data.data)
示例#4
0
def velCallBack(data):
    rospy.loginfo(rospy.get_call_id() + " updating velocities from cmd_vel")
    xVel = data.data.linear.x
    rotVel = data.data.angular.z
    vels = (xVel, rotVel)