Open zernchri opened 2 years ago
@zernchri Any updates on this ? I'm facing the same issue
The problem occurs due to a change in rclpy, as i expected. There was a change in the script node.py in rclpy, see https://github.com/ros2/rclpy/commit/8daacddc4fd72373fe9429de5ba3b2d2a5868078. The if automatically_declare_parameters_from_overrides part was changed. I solved that by simply changing this part of the node.py that changed in rclpy back to the old version. Now it works again for me. To just set the automatically_declare_parameters_from_overrides to false in the ros_compatibilty node also worked to start the bridge (you also have to increase the timeout when starting the bridge), but then spawning of the ego_vehicle caused issues again. Dont know it changing the rclpy script is the cleanest solution, but at least it works at the moment.
@zernchri Thanks! I did the exact same thing before you posted this and it worked for me. I hope this release starts shipping with galactic.
The ros-bridge stopped working for me, since I did apt upgrade on my PC. I get the following output messages when running
ros2 launch carla_ros_bridge carla_ros_bridge.launch.py
:I think the problem occurs due to a version upgrade of rclpy from 1.9.0 to 1.9.1 and a lack of compatibility to the bridge. I think the reason for this is in
/home/sim/carla-ros-bridge/install/ros_compatibility/lib/python3.8/site-packages/ros_compatibility/node.py
in theinit
function (ln 136ff), where the use_sim_time variable is used. When changing the boolean values there, the error changes toError: time-out of 2000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000
. Since carla runs properly, I think this error also occurs due to a missmatch of the sim_time.Has someone else face the same issue and knows how to fix this? If I understand this errors correct, I would suggest everybody should have the same problem when changing the rclpy version.