Skip to content

Commit

Permalink
add spacenav example
Browse files Browse the repository at this point in the history
Signed-off-by: Borong Yuan <[email protected]>
  • Loading branch information
borongyuan committed Feb 15, 2023
1 parent bf6ed90 commit d1bdb8d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/examples/realtime_servo/launch/servo_spacenav_input.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from launch import LaunchDescription
from launch_ros.actions import Node


def generate_launch_description():
return LaunchDescription([
Node(package='spacenav', executable='spacenav_node',
name='spacenav', namespace='', output='screen',
parameters=[{'zero_when_static': True,
'use_twist_stamped': True}],
remappings=[('spacenav/twist', 'servo_node/delta_twist_cmds')]),
])
7 changes: 7 additions & 0 deletions doc/examples/realtime_servo/realtime_servo_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Make a service request to start Servo ::

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

Using a SpaceMouse
^^^^^^^^^^^^^^^^^^^^

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 ::

ros2 launch moveit2_tutorials servo_spacenav_input.launch.py

Without a Controller
^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit d1bdb8d

Please sign in to comment.