Skip to content

Control your rviz view with a 3D connexion SpaceMouse

Notifications You must be signed in to change notification settings

naoki-mizuno/spacenav_rviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spacenav_rviz

Control your rviz view with a 3Dconnexion SpaceMouse.

Tested with SpaceMouse Wireless, but should work with SpaceMouse Compact and maybe SpaceMouse Pro.

Installation

# Use your ROS distro instead of noetic
$ sudo apt install ros-noetic-spacenav-node

Usage

For a quick demo, run:

$ roslaunch spacenav_rviz rviz.launch

To use it in your launch file, change:

<node name="rviz" pkg="rviz" type="rviz" args="-d your_config.rviz" />

to

<include file="$(find spacenav_rviz)/launch/rviz" >
  <arg name="config" value="your_config.rviz" />
</include>

In rviz "Views" panel, set:

  • "Type" to FrameAligned
  • "Target Frame" to camera
  • "Point towards" to +x axis

You may need to click "Zero" to reset the view.

Tilt your SpaceMouse to control the camera position and orientation. Press the right button to speed up and the left button to slow down.

License

MIT

Author

Naoki Mizuno ([email protected])

About

Control your rviz view with a 3D connexion SpaceMouse

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published