You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the -b bond option for spawn_entity.py, the entity is not deleted upon node shutdown. Instead, the following occurs:
[spawn_entity.py-15] [INFO] [1681789499.858636142] [agent0.spawn_entity]: Ctrl-C detected
[spawn_entity.py-15] Failed to publish log message to rosout: publisher's context is invalid, at ./src/rcl/publisher.c:389
[spawn_entity.py-15] [INFO] [1681789499.859028577] [agent0.spawn_entity]: Deleting entity [agent0]
[spawn_entity.py-15] Failed to publish log message to rosout: publisher's context is invalid, at ./src/rcl/publisher.c:389
[spawn_entity.py-15] Traceback (most recent call last):
[spawn_entity.py-15] File "/opt/ros/humble/lib/gazebo_ros/spawn_entity.py", line 370, in <module>
[spawn_entity.py-15] main()
[spawn_entity.py-15] File "/opt/ros/humble/lib/gazebo_ros/spawn_entity.py", line 365, in main
[spawn_entity.py-15] exit_code = spawn_entity_node.run()
[spawn_entity.py-15] File "/opt/ros/humble/lib/gazebo_ros/spawn_entity.py", line 263, in run
[spawn_entity.py-15] self._delete_entity()
[spawn_entity.py-15] File "/opt/ros/humble/lib/gazebo_ros/spawn_entity.py", line 299, in _delete_entity
[spawn_entity.py-15] client = self.create_client(
[spawn_entity.py-15] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/node.py", line 1417, in create_client
[spawn_entity.py-15] client_impl = _rclpy.Client(
[spawn_entity.py-15] rclpy._rclpy_pybind11.RCLError: failed to create client: rcl node's context is invalid, at ./src/rcl/node.c:428
[ERROR] [spawn_entity.py-15]: process has died [pid 725, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -blah-parameters-here].
As you can see, the service client is not successfully created and thus the entity is not deleted. It seems that @alexfneves and @chapulina fixed this problem a long time ago with #986, but the behavior has reverted.
The text was updated successfully, but these errors were encountered:
ROS Version: Humble
When using the
-b
bond option for spawn_entity.py, the entity is not deleted upon node shutdown. Instead, the following occurs:As you can see, the service client is not successfully created and thus the entity is not deleted. It seems that @alexfneves and @chapulina fixed this problem a long time ago with #986, but the behavior has reverted.
The text was updated successfully, but these errors were encountered: