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

How to add third person follower in librviz.

asked 2019-02-19 00:09:08 -0600

iravi89 gravatar image

updated 2019-04-06 18:42:26 -0600

jayess gravatar image

HI , I am trying to add thridpersonfollower view with view controller in my application in base_link frame. I am new in using librviz and currently handling display in fixedframe of velodyne. I want to follow the bas_link frame with thirdperson follower view. i am trying to get currentviewcontroller from view manager as follows. Please suggest and solve me in getting the desired output.

manager_->getViewManager()->setCurrentViewControllerType("rviz/ThirdPersonFollower");

manager_->getViewManager()->getCurrent()->setProperty("Target Frame", "base_link");
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-27 09:35:04 -0600

Julien Audet gravatar image

Instead of using :

manager_->getViewManager()->getCurrent()->setProperty("Target Frame", "base_link");

Try using :

manager_->getViewManager()->getCurrent()->subProp("Target Frame")->setValue("base_link");

I had the same problem for changing the current view controller distance. Hope it helps even if I'm too late.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-02-19 00:09:08 -0600

Seen: 784 times

Last updated: Apr 06 '19