RoboticsInfrastructure icon indicating copy to clipboard operation
RoboticsInfrastructure copied to clipboard

Rtf decreases a lot when there is a difference in elevation in a circuit

Open javizqh opened this issue 10 months ago • 13 comments

This can be seen in the Monaco circuit, as the RTF drops from 0.7 to 0.1-0.2 when faced with a change in altitude

https://github.com/user-attachments/assets/de6c1155-6050-4a34-ad68-5b9610e3c4f7

javizqh avatar Jan 13 '26 11:01 javizqh

Hi, I noticed the RTF drop on the Monaco circuit when there is a change in elevation (RTF going from 0.7 to 0.1–0.2, as shown in the video). I’d like to investigate this issue and work on a possible fix (terrain/collision/physics optimization). Is it okay if I take this up?

morty649 avatar Jan 14 '26 14:01 morty649

Sure @morty649 . We do not follow a strict issue allocation/assignment, other contributors may work on it too. The sooner you submit your solving PR the more the chances it can be merged :-)

jmplaza avatar Jan 14 '26 14:01 jmplaza

The computer I used for the video is using Ubuntu 24.04 with only CPU

javizqh avatar Jan 14 '26 22:01 javizqh

Changes I make inside the RoboticsAcademy repo (frontend / exercises) are reflected immediately in my local deployment via docker-compose. However, changes I make in RoboticsInfrastructure (worlds, models, launchers) are not reflected, even though RI exists as a submodule inside RA.

Is the intended workflow for RI changes to use a standalone RoboticsInfrastructure clone and mount it explicitly in docker-compose? Or is there an official way to develop RI changes through the RA setup itself?

JitinSaxenaa avatar Jan 15 '26 15:01 JitinSaxenaa

For that you must generate a custom RADI as stated in the documentation: https://github.com/JdeRobot/RoboticsAcademy/blob/humble-devel/docs/generate_a_radi.md

javizqh avatar Jan 15 '26 18:01 javizqh

I came to realise that one cannot reproduce this on macOs since gazebo does support macOs but not to the fullest - gpu acceleration is not to its fullest and even if i try to install gazebo on ubuntu vm there are issues raised at most of the stages. When i tried the same setup it worked on my another laptop with native Ubuntu installed which is easy. But i am unable to make the car move even though i tried different scripts for it. I am a newbie to this field and this really demotivated me into getting into issues and working on them. Is there any other way i can contribute

morty649 avatar Jan 15 '26 19:01 morty649

The RADI is a docker container. You do not need to install locally gazebo.

If this issue is to complicated feel free to contribute in a simpler one in Robotics Academy

javizqh avatar Jan 15 '26 19:01 javizqh

Following up on this from my side:

I dug a bit deeper into the macOS/Apple Silicon setup and found that part of the difficulty was that RADI could fail to build at all due to parallel colcon builds with LTO running under amd64 emulation.

I opened a PR that makes the RADI Docker build architecture-aware on arm64, which allows the full image to build successfully on Apple Silicon. This doesn’t address Gazebo GPU performance or rendering limitations on macOS, but it removes a hard build blocker.

PR: https://github.com/JdeRobot/RoboticsAcademy/pull/3405

morty649 avatar Jan 22 '26 17:01 morty649

Hi @morty649, Gazebo even runs in only-CPU mode, with no GPU support at all. And in addition you can also test on your MacOS computer the RoboticsAcademy exercises that do not use any simulator at all. For instance the Basic Computer vision exercise.

jmplaza avatar Jan 22 '26 17:01 jmplaza

Following up on this from my side:

I dug a bit deeper into the macOS/Apple Silicon setup and found that part of the difficulty was that RADI could fail to build at all due to parallel colcon builds with LTO running under amd64 emulation.

I opened a PR that makes the RADI Docker build architecture-aware on arm64, which allows the full image to build successfully on Apple Silicon. This doesn’t address Gazebo GPU performance or rendering limitations on macOS, but it removes a hard build blocker.

PR: https://github.com/JdeRobot/RoboticsAcademy/pull/3405

This is not related in any way with this issue.

Please refrain from commenting unrelated stuff and create a new issue for that

javizqh avatar Jan 22 '26 18:01 javizqh

The RADI is a docker container. You do not need to install locally gazebo.

If this issue is to complicated feel free to contribute in a simpler one in Robotics Academy

I thought it is good to let you know that i faced this issue and found something relateble. Will not be commenting any irrelevant stuff - ok

morty649 avatar Jan 22 '26 18:01 morty649

Create a new issue if you want to share, but not in an issue related to a completely different thing. It makes it harder to newconers to know what an issue is about if you comment things unrelated to it.

Everything has its place, an this is the place to talk about how to fix the issue with the reduced RTF when changing elevation in Gazebo Harmonic

javizqh avatar Jan 22 '26 18:01 javizqh

After testing, the walls do not seem to be the cause, so the error is not the same as with the other exercises. Also removing the sea and grass improves RTF by around 15% but the drop is still the same

javizqh avatar Mar 23 '26 12:03 javizqh