Ask Your Question
2

How to move rviz 3D view with keyboard ("W,A,S,D", etc.)?

asked 2015-01-08 21:30:02 -0500

Wanli gravatar image

Is it possible in rviz to use keyboard key presses to enable movement of 3D camera view, instead of using mouse clicks and drags? For example, I hope to press key "W" to move forward, "A" to left, "D" to right, "Z" for up, etc.

Or if this is currently not possible in rviz, how can I develop a plugin to enable that (which class to inherit and functions to override)?

Thanks in advance!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
3

answered 2015-01-09 04:01:18 -0500

There's the fps_motion_tool, an rviz plugin that does exactly what you want. Not sure about its current status, but if you run into problems, I'm sure the author (hdeeken) will be happy to help you.

edit flag offensive delete link more

Comments

thanks! This solved my problem! the package was still on rosbuild thus cannot be used in indigo, but after minor fix it works well.

Wanli gravatar image Wanli  ( 2015-01-12 02:34:46 -0500 )edit

Good to hear! If you want, you can open a pull request with your changes.

Martin Günther gravatar image Martin Günther  ( 2015-01-12 04:37:02 -0500 )edit

@Wanli, I just wanted to let others know, rosbuild packages can be used in indigo, you just have to download and build them yourself, i.e. you can't have the ROS farm build binaries for rosbuild packages on indigo, see: http://www.ros.org/reps/rep-0003.html...

William gravatar image William  ( 2015-01-12 12:30:53 -0500 )edit

Just got an update from the author hdeeken, the original repository (fps_motion_tool) is obsolete. Please use rviz_fps_plugin now. Also pull request (catkin upgrade) was created and merged to the new repository.

Wanli gravatar image Wanli  ( 2015-01-12 18:31:15 -0500 )edit
1

answered 2015-01-09 02:11:57 -0500

gvdhoorn gravatar image

In addition to the answer of @130s, you might be interested in the rviz_animated_view_controller. Not a keyboard interface, but it does allow you to control the RViz camera by other means than the mouse.

edit flag offensive delete link more
0

answered 2015-01-08 23:23:05 -0500

130s gravatar image
edit flag offensive delete link more

Comments

Thanks! But I think the links you provided explained how to jump to different rviz Tools with short-cut key, but not really moving the camera view in different directions by pressing different keys...

Wanli gravatar image Wanli  ( 2015-01-09 03:15:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-08 21:30:02 -0500

Seen: 1,564 times

Last updated: Jan 09 '15