turtlebot3_teleop_key 键盘控制程序,使之0速度时不会一直发送 topic
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
1.turtlebot3_teleop_key 键盘控制程序,使之0速度时不会一直发送 topic
使之按下s键小车停止后,不会一直发送 topic
#!/usr/bin/env python3
#coding=utf-8
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the Willow Garage, Inc. nor the names of its
# contributors may be used to endors