UCI-Rocket-Project / rocket-tracker

gimballed camera mount to automatically track rocket launches
1 stars 0 forks source link

gazebo setting skybox #2

Closed EricPedley closed 1 month ago

EricPedley commented 1 month ago

https://answers.gazebosim.org/question/28524/skybox-doesnt-render-on-camera-sensor/ https://app.gazebosim.org/OpenRobotics/fuel/worlds/Fortress%20demo ign gazebo -r "https://fuel.ignitionrobotics.org/1.0/OpenRobotics/worlds/Fortress demo" image

https://askubuntu.com/questions/1514352/ubuntu-24-04-with-nvidia-driver-libegl-warning-egl-failed-to-create-dri2-scre sudo apt-get install libnvidia-egl-wayland1 reboot same error :(

https://github.com/gazebosim/gz-rendering/issues/587

Sike actually that error also prints out when I run working examples like the built-in sonoma raceway one. And like in that first forum post, the sky doesn't render in that example. The sonoma raceway example isn't even using a sky texture, it just sets the background.

EricPedley commented 1 month ago

The other error about setting param with empty string can be fixed by downloading the world and editing line 722 of fortress.sdf to <model name="camera_model" element_id="base" action="add"> but it still hangs.

It's just super slow to load so it looks like it hangs. IDK if fixing that was actually necessary.

EricPedley commented 1 month ago

Ugh this was a pain in the ass. Had to add another camera sensor under the semantic segmentation sensor and it takes 3 minutes each time I want to run it. Anyways, I reproduced the results in that forum post. Even though the sky renders perfectly fine for me in the GUI, in the image preview for the camera it doesn't render, and crashes a few seconds after running the simulation. I think this is because of the hydrodynamics physics. https://github.com/ArduPilot/ardupilot_gazebo/issues/45

EricPedley commented 1 month ago

More links here: https://answers.gazebosim.org/question/7474/how-do-you-render-a-realistic-outdoor-world-with-gazebo/

First answer is a 404, Second answer doesn't error but doesn't

ACTUALLY, second answer works, I just didn't realize that the launch script I had copied in doesn't read my custom world file, it just puts the robot in a blank world.

EricPedley commented 1 month ago

FINALLY! image https://github.com/UCI-Rocket-Project/rocket-tracker/commit/ac01dddf8e90e15fb2ec6ac81cab04af4997a9d2