launch
configuration for TopDownOrtho camera view
#50
Replies: 2 comments 1 reply
-
The best you can do with the current code is make the fx/fy values very large while making the camera origin far from what the camera is pointed at (but there is a far_plane maximum of 100.0, it can't be further from that unless you alter the code)- this only approximates an ortho view. To make a real ortho view there would need to be something in the input camera_info that puts the rviz camera into an orthographic projection mode instead of perspective- could be a string like Then in https://github.com/lucasw/rviz_camera_stream/blob/noetic-devel/src/camera_display.cpp#L702-L723 he coefficients of the projection matrix would be set up differently- or possibly Ogre3D has some convenience functions to use, but I think the just the projection matrix values could be changed to accomplish it- https://www.songho.ca/opengl/gl_projectionmatrix.html#ortho may work. |
Beta Was this translation helpful? Give feedback.
-
Here is the launch file I was able to create to stream the equivalent of a top down ortho camera with current code state
|
Beta Was this translation helpful? Give feedback.
-
Hello @lucasw ,
first I'd like to thank you for this really useful tool that I found and started using recently.
I'm still learning how to use properly the tool and I have one question regarding the camera configuration in the
launch
file.How can I define the
launch
file in order to have the equivalent of the RVizTopDownOrtho
view?All the configurations I found in your launch file seem to be the equivalent of the RViz
ThirdPersonFollower
view.Thanks in advance for your tips
Simon
Beta Was this translation helpful? Give feedback.
All reactions