Rescue People simulator doesn't work

Gazebo simulator doesn’t work since yesterday, any solutions?
Indeed, sometimes the unitocis doesn’t load full simulator and keep trying to connect to backend

Thanks!

Hi @keistt , have you updated your RADI image? There was a major change yesterday and new RADIs were also published. Please upgrade to new RADI releases.

Best,

Now, I already update and now i have this failure.

I have been working using online version but it starts working (using URJC1) and in 2 or 3 minutes it stops working.
I have uploaded into this version: “docker pull jderobot/robotics-academy:3.4.23” and I am not able to display the simulation.

I hope you can help me.

Thanks in advance.

Julia,

Please update to 3.4.23 and launch that RADI. “Latest” tag points wrongly to 3.4.22 (We will fix it soon)

@juloau are you using local ROS1 RADI (3.4.23) or remote robotics backend (URJC1)?

I have tried both of them and using URJC1 it succesfully conects but after three minutes it disconnets.
Using local version I cannot even display anything, it is always loading (I have left it for several minutes)

This is the output I get from the terminal using local version:

sudo docker run --rm -it -p 7681:7681 -p 2303:2303 -p 1905:1905 -p 8765:8765 -p 6080:6080 -p 1108:1108 -p 7163:7163 -p 7164:7164 jderobot/robotics-academy:latest
BASE_DIR /RoboticsAcademy
2023-11-09 11:04:06,119 [MainThread ] [INFO ] (root) Starting RAM consumer in <websocket_server.websocket_server.WebsocketServer object at 0x7f2deae99b20>:7163
2023-11-09 11:04:06,119 [MainThread ] [INFO ] (websocket_server.websocket_server) Listening on port 7163 for clients…
2023-11-09 11:04:06,120 [MainThread ] [INFO ] (websocket_server.websocket_server) Starting WebsocketServer on thread Thread-1.
BASE_DIR /RoboticsAcademy
Watching for file changes with StatReloader
Performing system checks…

System check identified no issues (0 silenced).
November 09, 2023 - 11:04:07
Django version 4.1.7, using settings ‘academy.settings’
Starting development server at http://0.0.0.0:7164/
Quit the server with CONTROL-C.
2023-11-09 11:04:13,737 [Thread-2 ] [INFO ] (root) client connected: {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea92e0>, ‘address’: (‘172.17.0.1’, 52844)}
2023-11-09 11:04:13,770 [Thread-2 ] [INFO ] (root) message received: {“id”:“051b69d1-c055-46ee-b107-8c9857159760”,“command”:“connect”} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea92e0>, ‘address’: (‘172.17.0.1’, 52844)}
2023-11-09 11:04:13,842 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_connect’
2023-11-09 11:04:13,842 [MainThread ] [INFO ] (transitions.core) Finished processing state idle exit callbacks.
2023-11-09 11:04:13,843 [MainThread ] [INFO ] (root) Connect state entered
2023-11-09 11:04:13,843 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_enter_connected’
2023-11-09 11:04:13,843 [MainThread ] [INFO ] (transitions.core) Finished processing state connected enter callbacks.
2023-11-09 11:04:13,843 [MainThread ] [INFO ] (root) State changed to connected
2023-11-09 11:04:13,843 [MainThread ] [INFO ] (transitions.core) Executed callback ‘<bound method Manager.state_change of <main.Manager object at 0x7f2deaecc280>>’
2023-11-09 11:04:13,887 [Thread-2 ] [INFO ] (root) message received: {“id”:“6de841c8-e172-4a6e-ba67-3f0f1f2ed995”,“command”:“launch”,“data”:{“launch”:{},“application”:{“type”:“python”,“params”:{“circuit”:""},“entry_point”:"$EXERCISE_FOLDER/entry_point/exercise.py"},“exercise_id”:“rescue_people_newmanager”,“visualization”:“gazebo_rae”,“world”:“drones”,“resource_folders”:"$EXERCISE_FOLDER/launch/ros1_noetic",“model_folders”:"/catkin_ws/src/drones/drone_assets/models/boat_beacon",“launch_file”:"$EXERCISE_FOLDER/launch/ros1_noetic/launch.py"}} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea92e0>, ‘address’: (‘172.17.0.1’, 52844)}
2023-11-09 11:04:13,944 [MainThread ] [INFO ] (root) Launch transition started, configuration: {‘launch’: {}, ‘application’: {‘type’: ‘python’, ‘params’: {‘circuit’: ‘’}, ‘entry_point’: ‘$EXERCISE_FOLDER/entry_point/exercise.py’}, ‘exercise_id’: ‘rescue_people_newmanager’, ‘visualization’: ‘gazebo_rae’, ‘world’: ‘drones’, ‘resource_folders’: ‘$EXERCISE_FOLDER/launch/ros1_noetic’, ‘model_folders’: ‘/catkin_ws/src/drones/drone_assets/models/boat_beacon’, ‘launch_file’: ‘$EXERCISE_FOLDER/launch/ros1_noetic/launch.py’}
2023-11-09 11:04:17,198 [Thread-2 ] [INFO ] (root) message received: {“id”:“6c1ba888-229d-43bd-8f5e-d1cf2780546f”,“command”:“disconnect”} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea92e0>, ‘address’: (‘172.17.0.1’, 52844)}
2023-11-09 11:04:17,934 [Thread-2 ] [INFO ] (websocket_server.websocket_server) Client asked to close connection.
2023-11-09 11:04:17,934 [Thread-2 ] [INFO ] (root) client disconnected: {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea92e0>, ‘address’: (‘172.17.0.1’, 52844)}
11:04:17
2023-11-09 11:04:18,304 [Thread-8 ] [INFO ] (root) client connected: {‘id’: 2, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea9310>, ‘address’: (‘172.17.0.1’, 52848)}
2023-11-09 11:04:18,328 [Thread-8 ] [INFO ] (root) message received: {“id”:“dfcd0c9b-e3d7-49bb-b2e8-c494872dc468”,“command”:“connect”} from client {‘id’: 2, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea9310>, ‘address’: (‘172.17.0.1’, 52848)}
2023-11-09 11:04:20,465 [MainThread ] [INFO ] (rospy.topics) topicmanager initialized
2023-11-09 11:04:20,491 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_launch’
2023-11-09 11:04:20,491 [MainThread ] [INFO ] (transitions.core) Finished processing state connected exit callbacks.
2023-11-09 11:04:20,491 [MainThread ] [INFO ] (root) Start state entered, configuration: {‘launch’: {‘console’: {‘launcher’: LauncherConsole(display=’:1’, internal_port=5901, external_port=1108, running=True, threads=[<DockerThread(Thread-6, started 139835165861632)>])}, ‘gazebo_view’: {‘launcher’: LauncherGazeboView(exercise_id=‘rescue_people_newmanager’, display=’:2’, internal_port=5900, external_port=6080, height=768, width=1024, running=True, threads=[<DockerThread(Thread-11, started 139834798630656)>])}}, ‘application’: {‘type’: ‘python’, ‘params’: {‘circuit’: ‘’, ‘update_callback’: <bound method Manager.update of <main.Manager object at 0x7f2deaecc280>>}, ‘entry_point’: ‘$EXERCISE_FOLDER/entry_point/exercise.py’}, ‘exercise_id’: ‘rescue_people_newmanager’, ‘visualization’: ‘gazebo_rae’, ‘world’: ‘drones’, ‘resource_folders’: ‘$EXERCISE_FOLDER/launch/ros1_noetic’, ‘model_folders’: ‘/catkin_ws/src/drones/drone_assets/models/boat_beacon’, ‘launch_file’: ‘$EXERCISE_FOLDER/launch/ros1_noetic/launch.py’}
2023-11-09 11:04:20,491 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_enter_ready’
2023-11-09 11:04:20,492 [MainThread ] [INFO ] (transitions.core) Finished processing state ready enter callbacks.
2023-11-09 11:04:20,492 [MainThread ] [INFO ] (root) State changed to ready
2023-11-09 11:04:20,492 [MainThread ] [INFO ] (transitions.core) Executed callback ‘<bound method Manager.state_change of <main.Manager object at 0x7f2deaecc280>>’
2023-11-09 11:04:20,492 [MainThread ] [INFO ] (root) client disconnected: {‘id’: 2, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7f2deaea9310>, ‘address’: (‘172.17.0.1’, 52848)}
11:04:20
2023-11-09 11:04:20,534 [Thread-8 ] [INFO ] (websocket_server.websocket_server) Client asked to close connection.
2023-11-09 11:04:20,807 [MainThread ] [INFO ] (root) Terminating console
2023-11-09 11:04:20,810 [MainThread ] [INFO ] (root) Terminating gazebo_view
2023-11-09 11:04:20,949 [MainThread ] [INFO ] (root) Starting RAM consumer in <websocket_server.websocket_server.WebsocketServer object at 0x7fae1a30bb50>:7163
2023-11-09 11:04:20,950 [MainThread ] [INFO ] (websocket_server.websocket_server) Listening on port 7163 for clients…
2023-11-09 11:04:20,950 [MainThread ] [INFO ] (websocket_server.websocket_server) Starting WebsocketServer on thread Thread-1.
2023-11-09 11:05:53,248 [Thread-2 ] [INFO ] (root) client connected: {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7fae1a31c310>, ‘address’: (‘172.17.0.1’, 35794)}
2023-11-09 11:05:53,269 [Thread-2 ] [INFO ] (root) message received: {“id”:“9ea6cd55-cd5d-4729-8942-efb3bf63a933”,“command”:“connect”} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7fae1a31c310>, ‘address’: (‘172.17.0.1’, 35794)}
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_connect’
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (transitions.core) Finished processing state idle exit callbacks.
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (root) Connect state entered
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_enter_connected’
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (transitions.core) Finished processing state connected enter callbacks.
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (root) State changed to connected
2023-11-09 11:05:53,352 [MainThread ] [INFO ] (transitions.core) Executed callback ‘<bound method Manager.state_change of <main.Manager object at 0x7fae1a33d2b0>>’
2023-11-09 11:05:53,396 [Thread-2 ] [INFO ] (root) message received: {“id”:“74cfcb86-11af-4b15-84f9-c3b4631a6773”,“command”:“launch”,“data”:{“launch”:{},“application”:{“type”:“python”,“params”:{“circuit”:""},“entry_point”:"$EXERCISE_FOLDER/entry_point/exercise.py"},“exercise_id”:“rescue_people_newmanager”,“visualization”:“gazebo_rae”,“world”:“drones”,“resource_folders”:"$EXERCISE_FOLDER/launch/ros1_noetic",“model_folders”:"/catkin_ws/src/drones/drone_assets/models/boat_beacon",“launch_file”:"$EXERCISE_FOLDER/launch/ros1_noetic/launch.py"}} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7fae1a31c310>, ‘address’: (‘172.17.0.1’, 35794)}
2023-11-09 11:05:53,453 [MainThread ] [INFO ] (root) Launch transition started, configuration: {‘launch’: {}, ‘application’: {‘type’: ‘python’, ‘params’: {‘circuit’: ‘’}, ‘entry_point’: ‘$EXERCISE_FOLDER/entry_point/exercise.py’}, ‘exercise_id’: ‘rescue_people_newmanager’, ‘visualization’: ‘gazebo_rae’, ‘world’: ‘drones’, ‘resource_folders’: ‘$EXERCISE_FOLDER/launch/ros1_noetic’, ‘model_folders’: ‘/catkin_ws/src/drones/drone_assets/models/boat_beacon’, ‘launch_file’: ‘$EXERCISE_FOLDER/launch/ros1_noetic/launch.py’}
2023-11-09 11:05:57,840 [MainThread ] [INFO ] (rospy.topics) topicmanager initialized
2023-11-09 11:05:57,853 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_launch’
2023-11-09 11:05:57,853 [MainThread ] [INFO ] (transitions.core) Finished processing state connected exit callbacks.
2023-11-09 11:05:57,853 [MainThread ] [INFO ] (root) Start state entered, configuration: {‘launch’: {‘console’: {‘launcher’: LauncherConsole(display=’:1’, internal_port=5901, external_port=1108, running=True, threads=[<DockerThread(Thread-6, started 140385502361344)>])}, ‘gazebo_view’: {‘launcher’: LauncherGazeboView(exercise_id=‘rescue_people_newmanager’, display=’:2’, internal_port=5900, external_port=6080, height=768, width=1024, running=True, threads=[<DockerThread(Thread-10, started 140385493968640)>])}}, ‘application’: {‘type’: ‘python’, ‘params’: {‘circuit’: ‘’, ‘update_callback’: <bound method Manager.update of <main.Manager object at 0x7fae1a33d2b0>>}, ‘entry_point’: ‘$EXERCISE_FOLDER/entry_point/exercise.py’}, ‘exercise_id’: ‘rescue_people_newmanager’, ‘visualization’: ‘gazebo_rae’, ‘world’: ‘drones’, ‘resource_folders’: ‘$EXERCISE_FOLDER/launch/ros1_noetic’, ‘model_folders’: ‘/catkin_ws/src/drones/drone_assets/models/boat_beacon’, ‘launch_file’: ‘$EXERCISE_FOLDER/launch/ros1_noetic/launch.py’}
2023-11-09 11:05:57,854 [MainThread ] [INFO ] (transitions.core) Executed callback ‘on_enter_ready’
2023-11-09 11:05:57,854 [MainThread ] [INFO ] (transitions.core) Finished processing state ready enter callbacks.
2023-11-09 11:05:57,854 [MainThread ] [INFO ] (root) State changed to ready
2023-11-09 11:05:57,854 [MainThread ] [INFO ] (transitions.core) Executed callback ‘<bound method Manager.state_change of <main.Manager object at 0x7fae1a33d2b0>>’
2023-11-09 11:06:34,438 [Thread-2 ] [INFO ] (root) message received: {“id”:“49baaeba-bf21-4f66-857a-fda493e44a43”,“command”:“load”,“data”:{“code”:“from GUI import GUI\nfrom HAL import HAL\n\n\nactual_height = 0.0\nmax_height = 3.0\n\n# Previously converted corrdinates from GPS to UTM\neast_boat_utm = 430492.2\nnorth_boat_utm = 4459161.1\n\neast_survivors_utm = 430532.5\nnorth_survivors_utm = 4459131.8\n\neast_survivors2boat = 430532.5 - 430492.2\nx_goal = east_survivors2boat\n#print(east_survivors2boat)\nnorth_survivors2boat = 4459131.8 - 4459161.1\ny_goal = north_survivors2boat\n#print(north_survivors2boat)\n\n# Must be 6\nnum_survivors_found = 0\ntotal_survivors = 6\n\n# x\n#print(HAL.get_position()[0])\n# y\n#print(HAL.get_position()[1])\n# z\n#print(HAL.get_position()[2])\n\nwhile True:\n # state 1 \n actual_height = HAL.get_position()[2]\n HAL.takeoff(max_height)\n diff_height = max_height - actual_height\n #if (dif_height > 0.25):\n #HAL.takeoff(max_height)\n #print(“estoy despegando”)\n #else: \n # print(“ya he terminado de despegar”)\n \n # state 2 \n \n if(diff_height < 0.25):\n HAL.set_cmd_pos(x_goal,y_goal,actual_height, 0.0)\n # Enter iterative code!\n print(HAL.get_position()[0], HAL.get_position()[1], HAL.get_position()[2])\n \n # Show ventral and frontal image\n frontal_image = HAL.get_frontal_image()\n GUI.showImage(frontal_image)\n ventral_image = HAL.get_ventral_image()\n GUI.showLeftImage(ventral_image)”}} from client {‘id’: 1, ‘handler’: <websocket_server.websocket_server.WebSocketHandler object at 0x7fae1a31c310>, ‘address’: (‘172.17.0.1’, 35794)}
Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.
11:10:07
11:12:29
11:12:31
11:14:36
11:14:48
11:19:26

@juloau do not use “jderobot/robotics-academy:latest” for now, just use j"derobot/robotics-academy:3.4.23" instead when launching the RADI. As I just commented in this thread the “latest” tag points wrongly to 3.4.22 (which fails)

Thank you so much, by now it seems to work.

Regards,
Julia.

Great @juloau .

Now the “latest” tag has just been corrected and properly points to 3.4.23, the real latest one :slight_smile:

@keistt, does it work for you?

Now it works, thanks!