-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
librviz: Setting View Controllers #997
Comments
Hello, Could you please tell me how to find sub_prop names, at the least? Thanks, |
@OAkyildiz I would, but I don't know myself (I didn't write that part of the code). I looked at this for a minute or two, but couldn't find it trivially. I'll try to spend some more time on it this week, but you might have to crawl through to code to find out. If you're lucky, one of the older rviz maintainers (authors) might have time to answer your question. |
Thanks @wjwwood (I was about to rephrase my question, I was trying to say "If you could answer that part, it can help me for now"), |
I've been trying to select a view controller within an rviz rqt plugin by looking at what rviz/view_manager is doing, maybe some of this is useful. The view renders what it ought to from a fixed view, but the mouse doesn't translate or rotate it- handleMouseEvent isn't getting hooked up?
If manager_->initialize(); is moved to after the setViewController() it restores the default view controller. This (mis)behaves identically but allows setting view by name, without having to have headers to the specific view type, the plugin just has to be loaded at run time:
Cross-posting on answers http://answers.ros.org/question/256100/rviz-setviewcontroller-doesnt-hook-up-mouse-events/ |
It turns out render panel setViewController should not be called by the user, because the view manager is in charge of the view controller, and calling it has parts of the system using the newly set view controller and other parts still using an old one that view manager is using. So instead call
|
Thanks Lucas! I will try this as soon as I get back to work on this. |
Display sub-properties are the strings of property names presented in the property tables of each |
Hello,
I am using librviz in a package for 3d scenes and I want to set the view controllers for the
VisualizationManagers
I have.The displays added to a scene are modified by
subProp
instead of getters and setters (preference, I assumed). I couldn't find where to look up for the property - string matches. (I checked the names in .rviz config files, but that didn't work for all of them).In that light, is there a unique way to set the
ViewControllers
and controlling them, or would initializing aViewController
(Ortho and ThirdPersonFllower in my case) object and assigning it would suffice? (I didn't see a setViewController, I think that's what stopped me in the first place.)Thanks,
The text was updated successfully, but these errors were encountered: