Skip to content

Commit d1bdb8d

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

File tree

2 files changed

+19
-0
lines changed

2 files changed

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

doc/examples/realtime_servo/realtime_servo_tutorial.rst

+7
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)