Open ajshort opened 8 years ago
Awesome. I would very much welcome the inclusion in rviz proper!
Cool! Couple of questions:
Bear in mind that i am not a maintianer, but here is my opinion:
Yeah, we can definitely consider taking this upstream. I'd recommend making a pr against kinetic-devel
, which is the default branch.
As for extending versus just having a new controller, I'd say it depends on whether or not the existing controller configuration has any benefit (maybe simplicity) over the one you've created. It would be good to get more feedback from others about this particular point.
Just renaming/updading the class is going to break RViz files:
Views:
Current:
Angle: 0
Class: rviz/TopDownOrtho
In that case RViz yelds an error but there is no crash, the user just has to select a controller in the list and everything works fine. Try it for yourself, change rviz/TopDownOrtho
to rviz/unknown
in a config file then load this config file.
I see two possibilities:
TopDownOrtho
but make sure it calls Ortho
with the right parameters (locked in the Z plane by default)The last solution is the most confortable for the user.
@ajshort I need orthographic view in RViz, do you plan on integrating your plugin into RViz or not?
If you don't have time or any other reason, do you allow me to create a pull request containing your code (and probably some modifications) into RViz? Of course I want to make sure you are the original author of the code, it needs to be clear.
@VictorLamoine Unfortunately I haven't had time, so go for it! I've attached a patch which gets the camera working with the current rviz to use as a starting point:
https://gist.github.com/ajshort/87b8bd2a48222436166922bfc8f5272b
I just open-sourced rviz_ortho_view_controller, which contains an orthographic view controller which isn't locked to a specific plane (unlike the top down ortho view controller). Instead it can free rotate or optionally be locked to a plane if desired.
I was wondering if there would be interest in bringing this kind of thing into RViz itself, since I think it provides a bit more orthographic functionality than what is currently available?