|
@@ -18,9 +18,9 @@ msg = """
|
|
|
Reading from the keyboard and Publishing to Twist!
|
|
|
---------------------------
|
|
|
Moving around:
|
|
|
- i
|
|
|
+ i
|
|
|
j k l
|
|
|
- ,
|
|
|
+ ,
|
|
|
|
|
|
|
|
|
anything else : stop
|
|
@@ -68,8 +68,8 @@ if __name__=="__main__":
|
|
|
pub = rospy.Publisher('cmd_vel', Twist, queue_size = 5)
|
|
|
rospy.init_node('teleop_twist_keyboard')
|
|
|
|
|
|
- speed = rospy.get_param("~speed", 0.2)
|
|
|
- turn = rospy.get_param("~turn", 1.4)
|
|
|
+ speed = rospy.get_param("~speed", 0.3)
|
|
|
+ turn = rospy.get_param("~turn", 2.5)
|
|
|
|
|
|
x = 0
|
|
|
y = 0
|
|
@@ -96,7 +96,7 @@ if __name__=="__main__":
|
|
|
print(vels(speed,turn))
|
|
|
if (status == 14):
|
|
|
print(msg)
|
|
|
- status = (status + 1) % 15
|
|
|
+ status = (status + 1) % 15
|
|
|
else:
|
|
|
x = 0
|
|
|
y = 0
|