Exemple #1
0
def callback(data):
  rospy.loginfo(rospy.get_call_id() + "I heard %s", data.data)
Exemple #2
0
def obstacle_callback(data):
    rospy.loginfo(rospy.get_call_id() + "obstacle_msg: ", data.data)
Exemple #3
0
def controller_callback(data):
    rospy.loginfo(rospy.get_call_id() + "controller_msg: ", data.data)
Exemple #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)