Hello
Having issue with connecting to the mobile base when with_mobile_base=True
that does not happen when with_mobile_base=False
. I have tried restarting the server without any luck within the dashboard.
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:10.42.0.24:50051: Failed to connect to remote host: Connection refused", grpc_status:14, created_time:"2024-09-11T14:28:38.586720115+02:00"}"
>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/peter/miniconda3/envs/lebai/lib/python3.10/site-packages/reachy_sdk/reachy_sdk.py", line 80, in __init__
raise IOError('Failed to connect to mobile base!')
What can I do to fix this issue?
FYI, this is the mobile base server logs:
â—Ź reachy_mobile_base.service - Mobile base SDK server service
Loaded: loaded (/home/reachy/.config/systemd/user/reachy_mobile_base.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-09-11 14:25:28 CEST; 12min ago
Process: 9269 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
Main PID: 9647 (bash)
Tasks: 66 (limit: 9063)
Memory: 95.0M
CPU: 4min 53.967s
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/reachy_mobile_base.service
├─9647 /usr/bin/bash /home/reachy/reachy_ws/src/reachy_2023/mobile_base_controller/mobile_base_sdk_server/launch_mobile_base.bash
├─9727 /usr/bin/python3 /opt/ros/humble/bin/ros2 launch mobile_base_sdk_server run_mobile_base_sdk_server_and_hal.launch.py
├─9740 /home/reachy/reachy_ws/install/rplidar_ros2/lib/rplidar_ros2/rplidar_scan_publisher --ros-args -r __node:=rplidar_scan_publisher --params-file /tmp/launch_params_6ja04712
├─9743 /usr/bin/python3 /home/reachy/reachy_ws/install/zuuu_hal/lib/zuuu_hal/hal --ros-args -r __node:=zuuu_hal --params-file /home/reachy/reachy_ws/install/zuuu_hal/share/zuuu_hal/config/params.yaml
└─9745 /usr/bin/python3 /home/reachy/reachy_ws/install/mobile_base_sdk_server/lib/mobile_base_sdk_server/mobile_base_sdk_server --ros-args
Sep 11 14:25:18 reachy-2023-R0020 systemd[1024]: Starting Mobile base SDK server service...
Sep 11 14:25:28 reachy-2023-R0020 systemd[1024]: Started Mobile base SDK server service.
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9647]: Starting mobile base launch file.
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [INFO] [launch]: All log files can be found below /home/reachy/.ros/log/2024-09-11-14-25-29-241619-reachy-2023-R0020-9727
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [INFO] [launch]: Default logging verbosity is set to INFO
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [INFO] [rplidar_scan_publisher-1]: process started with pid [9740]
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [INFO] [hal-2]: process started with pid [9743]
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [INFO] [mobile_base_sdk_server-3]: process started with pid [9745]
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.416449347] [rplidar_scan_publisher]: RPLIDAR running on ROS2 package rplidar_ros2.ROS2 SDK Version:1.0.1, RPLIDAR SDK Version:2.0.0
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.462760500] [rplidar_scan_publisher]: RPLIDAR S/N: A993EC95C1EA9ED1B2E49CF42A4F4571
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.462830369] [rplidar_scan_publisher]: Firmware Ver: 1.01
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.462844456] [rplidar_scan_publisher]: Hardware Rev: 18
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.513993886] [rplidar_scan_publisher]: RPLidar health status : 0
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.514110609] [rplidar_scan_publisher]: RPLidar health status : OK.
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [rplidar_scan_publisher-1] [INFO] [1726057529.709516290] [rplidar_scan_publisher]: current scan mode: DenseBoost, sample rate: 32 Khz, max_distance: 30.0 m, scan frequency:20.0 Hz,
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [INFO] [1726057529.963421557] [zuuu_hal]: Starting zuuu_hal!
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [INFO] [1726057529.966292420] [zuuu_hal]: zuuu version: 1.2
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [INFO] [1726057529.968099583] [zuuu_hal]: Reading Zuuu's sensors once...
Sep 11 14:25:29 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [INFO] [1726057529.982770210] [zuuu_hal]: The maximum PWM value is 20.0% => maximum wheel speed is set to 4.48rad/s
Sep 11 14:25:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057530.007892477] [zuuu_hal]: Battery voltage OK (26.0V)
Sep 11 14:25:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057530.020445973] [zuuu_hal]: waiting for a LIDAR scan to be read. Discarding all commands...
Sep 11 14:25:30 reachy-2023-R0020 reachy_mobile_base[9727]: [mobile_base_sdk_server-3] [INFO] [1726057530.201022042] [mobile_base_server]: Initialized mobile base server.
Sep 11 14:25:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057530.523920713] [zuuu_hal]: waiting for a LIDAR scan to be read. Discarding all commands...
Sep 11 14:25:31 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057531.028041893] [zuuu_hal]: waiting for a LIDAR scan to be read. Discarding all commands...
Sep 11 14:25:31 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057531.531464606] [zuuu_hal]: waiting for a LIDAR scan to be read. Discarding all commands...
Sep 11 14:25:32 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057532.036825689] [zuuu_hal]: waiting for a LIDAR scan to be read. Discarding all commands...
Sep 11 14:25:32 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [INFO] [1726057532.556608071] [zuuu_hal]: => Zuuu HAL up and running! **
Sep 11 14:26:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057590.019348794] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:27:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057650.025710056] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:28:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057710.020759289] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:29:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057770.022879827] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:30:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057830.035698069] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:31:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057890.023787003] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:32:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726057950.018575350] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:33:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726058010.053788195] [zuuu_hal]: Battery voltage OK (26.0V)
Sep 11 14:34:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726058070.018017775] [zuuu_hal]: Battery voltage OK (26.0V)
Sep 11 14:35:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726058130.017743407] [zuuu_hal]: Battery voltage OK (25.9V)
Sep 11 14:36:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726058190.024304026] [zuuu_hal]: Battery voltage OK (25.8V)
Sep 11 14:37:30 reachy-2023-R0020 reachy_mobile_base[9727]: [hal-2] [WARN] [1726058250.029626589] [zuuu_hal]: Battery voltage OK (26.0V)