Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/jetbot_motors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def set_speed(motor_ID, value):
elif motor_ID == 2:
motor = motor_right
else:
rospy.logerror('set_speed(%d, %f) -> invalid motor_ID=%d', motor_ID, value, motor_ID)
rospy.logerr('set_speed(%d, %f) -> invalid motor_ID=%d', motor_ID, value, motor_ID)
return

motor.setSpeed(speed)
Expand Down Expand Up @@ -65,7 +65,7 @@ def on_cmd_str(msg):
elif msg.data.lower() == "stop":
all_stop()
else:
rospy.logerror(rospy.get_caller_id() + ' invalid cmd_str=%s', msg.data)
rospy.logerr(rospy.get_caller_id() + ' invalid cmd_str=%s', msg.data)


# initialization
Expand Down