You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Unity running on Windows, and ROS running on an Ubuntu machine. When using only one camera, there are no issues. The images renders properly. I've set the screen resolution in Unity to match that of ROS.
However, when I try using stereo cameras, rather than stacking two images on top of each other, Unity only processes one image and stretches that image to fit the specified stereo dimensions. ROS then takes the top half of the stretched image for the left and the bottom half of the image for the right.
Running the provided unity executable on the ubuntu machine doesn't encounter this issue, so we deduce that ROS is sending/receiving the correct messages, however Unity is not rendering it properly on the windows side when we are building it from source.
We're looking into CameraController.cs, but are unsure where the stereo/pose information is being processed and rendered into Unity. Do you have any suggestions as to how to go about fixing this problem?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Have you tried building the binary on Windows and verifying if the problem persists with the binary? Alternatively, could you manually set the editor render resolution to equal to 2x the camera height? I.e. if one camera is 800x600, then set the editor resolution to 800x1200? In the source editor, FG is unable to manipulate the output resolution, thus requiring some manual intervention.
Hello,
I have Unity running on Windows, and ROS running on an Ubuntu machine. When using only one camera, there are no issues. The images renders properly. I've set the screen resolution in Unity to match that of ROS.
However, when I try using stereo cameras, rather than stacking two images on top of each other, Unity only processes one image and stretches that image to fit the specified stereo dimensions. ROS then takes the top half of the stretched image for the left and the bottom half of the image for the right.
Running the provided unity executable on the ubuntu machine doesn't encounter this issue, so we deduce that ROS is sending/receiving the correct messages, however Unity is not rendering it properly on the windows side when we are building it from source.
We're looking into CameraController.cs, but are unsure where the stereo/pose information is being processed and rendered into Unity. Do you have any suggestions as to how to go about fixing this problem?
Thanks for your help!
The text was updated successfully, but these errors were encountered: