ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

header of view controller [closed]

asked 2015-06-18 13:33:09 -0600

YiboLyu gravatar image

I am using rviz to show the navigation map. Now I want to make the robot always in the middle of the map. I try to avoid plugin. So I try to use Viewcontroller::lookat and VisualizationManager::getCurrentViewController. But I am always wrong about the header and I don't know whether I can do this without using plugin (because I think plugin is too complicated).

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by YiboLyu
close date 2015-07-01 13:49:31.493092

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-18 13:41:03 -0600

William gravatar image

Set the "target frame" to be the frame of the robot (commonly named /base_link) and the camera will move with that link and therefore the robot.

This will only follow the position of the robot, but will not turn with it. There is an open pull request that adds a new view controller to rviz which also follows in a "third person" mode:

I haven't had time to integrate it yet, but you might be able to build rviz with that pull request merged in the mean time.

edit flag offensive delete link more


Thank you very much. Actually, I only want to use the up to down view and not a 3D view. Anyway, thanks a lot.

YiboLyu gravatar image YiboLyu  ( 2015-06-18 13:44:14 -0600 )edit

Question Tools


Asked: 2015-06-18 13:33:09 -0600

Seen: 79 times

Last updated: Jun 18 '15