Skip to content

Commit c3480e0

Browse files
jobleierNeato
authored and
Neato
committed
Add config and launch files for joystick teleoperations
1 parent a5b8624 commit c3480e0

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ You can check this out into your catkin workspace as follows:
2020
* and contains elementary safety features: stopping at walls, stairs and Neato's magnetic strips.
2121
* LDS, Sounds, and Leds can be set via service call
2222
* This ROS node works with Kinetic.
23+
* Add config to control the Neato with a joystick.

neato_node/config/joy_teleop.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
teleop:
2+
move:
3+
type: topic
4+
message_type: geometry_msgs/Twist
5+
topic_name: cmd_vel
6+
axis_mappings:
7+
-
8+
axis: 1
9+
target: linear.x
10+
scale: 0.6
11+
-
12+
axis: 3
13+
target: angular.z
14+
scale: 1.0

neato_node/launch/joy_teleop.launch

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<launch>
2+
<arg name="cmd_vel" default="/cmd_vel" />
3+
<arg name="teleop_config" default="$(find neato_node)/config/joy_teleop.yaml" />
4+
5+
<node pkg="joy" type="joy_node" name="joystick" output="screen" />
6+
7+
<rosparam file="$(arg teleop_config)" command="load" />
8+
<node pkg="joy_teleop" type="joy_teleop.py" name="joy_teleop">
9+
<remap from="cmd_vel" to="$(arg cmd_vel)" />
10+
</node>
11+
12+
</launch>

0 commit comments

Comments
 (0)