My local simulation not loading correctly as a rosject

Hi there!
I’m trying to make a simulation that both me and my students use regularly into a rosject. However, when I try to run it, I get an an error, and the simulation would not start.
I’ve used my simulation in several different machines without a problem, so not sure how to handle this error.

Service call failed: transport error completing service call: unable to receive data from sender, check sender's logs for details
[ERROR] [1727686156.603196, 0.000000]: Spawn service failed. Exiting.
/opt/ros/noetic/lib/gazebo_ros/gzserver: line 74:  3824 Segmentation fault      (core dumped) GAZEBO_MASTER_URI="$desired_master_uri" GAZEBO_MODEL_DATABASE_URI="$desired_model_database_uri" gzserver $final
[gazebo-2] process has died [pid 3731, exit code 139, cmd /opt/ros/noetic/lib/gazebo_ros/gzserver -u -e ode /home/user/catkin_ws/src/locobot_simulation/worlds/bsc_trash.world __name:=gazebo __log:=/home/user/.ros/log/dbdb32ca-7f08-11ef-bdff-0242ac120006/gazebo-2.log].
log file: /home/user/.ros/log/dbdb32ca-7f08-11ef-bdff-0242ac120006/gazebo-2*.log
[locobot/urdf_spawner-5] process has died [pid 3738, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -urdf -model locobot -param robot_description __name:=urdf_spawner __log:=/home/user/.ros/log/dbdb32ca-7f08-11ef-bdff-0242ac120006/locobot-urdf_spawner-5.log].
log file: /home/user/.ros/log/dbdb32ca-7f08-11ef-bdff-0242ac120006/locobot-urdf_spawner-5*.log

Simulation repo: GitHub - Dorteel/locobot_simulation
Rosject link: https://app.theconstruct.ai/l/64f1e510/

Launch file:
roslaunch locobot_simulation simulation.launch
I attached a screenshot of how it looks on my local machine.
Any help would be appreciated!

This could be related to ROS/Gazebo variables like this one, since it seems to be a communication problem.

Generally speaking, this specific variable needs to be set automatically on our platform; things might not work if they are set to custom values.

One way to audit these variables would be to check the values for a rosject created out of the box on the platform vs this one you are trying to create from a repository.

Thanks for the reply! I tried to check these environment variables, and to enforce some of them, but had no luck so far. I’ll update the post if I find something.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.