ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

new view controller in rviz (fixed to the center of the target frame): how to rotate with the frame?

asked 2013-08-23 08:10:53 -0600

brice rebsamen gravatar image

updated 2013-11-14 10:16:17 -0600

tfoote gravatar image

I wrote a new view controller for rviz. Heavily based on FPS, but cannot be translated, so that it stays attached to the target frame (I copied from FPS and suppressed the code related to translation).

I attach it to a frame inside the car (think base_link + offset), so that it gives a view from the drivers perspective.

But when the car turns, the camera does not turn with the car. I want it to be always aligned with the target frame, plus whatever yaw and pitch I give it with the mouse.

How to achieve that please?

edit retag flag offensive close merge delete

Comments

cool. Sadly I'm still using Fuerte... I'm planning to upgrade in a couple of months, I'll use your plugin then. Meanwhile I see if I can do some backport...

brice rebsamen gravatar image brice rebsamen  ( 2013-08-23 09:14:22 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-08-23 08:51:06 -0600

dgossow gravatar image

I recently wrote a view controller which does exactly that. It's part of the oculus plugin: https://github.com/ros-visualization/oculus_rviz_plugins/blob/groovy-devel/src/fixed_view_controller.cpp

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-23 08:10:53 -0600

Seen: 1,427 times

Last updated: Nov 14 '13