Skip to content

Commit c8d36e0

Browse files
committed
add spacenav example
Signed-off-by: Borong Yuan <[email protected]>
1 parent bf6ed90 commit c8d36e0

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from launch import LaunchDescription
2+
from launch_ros.actions import Node
3+
4+
5+
def generate_launch_description():
6+
return LaunchDescription(
7+
[
8+
Node(
9+
package="spacenav",
10+
executable="spacenav_node",
11+
name="spacenav",
12+
output="screen",
13+
parameters=[{"zero_when_static": True, "use_twist_stamped": True}],
14+
remappings=[("spacenav/twist", "servo_node/delta_twist_cmds")],
15+
),
16+
]
17+
)

doc/examples/realtime_servo/realtime_servo_tutorial.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ Make a service request to start Servo ::
3131

3232
You should be able to control the arm with your controller now, with MoveIt Servo automatically avoiding singularities and collisions.
3333

34+
Using a SpaceMouse
35+
^^^^^^^^^^^^^^^^^^^^
36+
37+
If you have a 3Dconnexion SpaceMouse, you can send 6DoF Cartesian commands using a single joystick. With the demo still running, in a new terminal, run ::
38+
39+
ros2 launch moveit2_tutorials servo_spacenav_input.launch.py
40+
3441
Without a Controller
3542
^^^^^^^^^^^^^^^^^^^^
3643

0 commit comments

Comments
 (0)