Open u-sj opened 1 year ago
Currently it appears that there is a race condition somewhere as I have observed cases with 2+ sensors where more than one sensor has the correct transformation.
The incorrect transformation is placed into the ros message at line 114 in sensor.py.
The value of self.relative_spawn_pose
appears to be 0 for sensors without parents when it should be relative to the map.
Hi, I also observe the same issue again with using a larger map. Therefore, I tried with the other proposed solution of the initial problem again. Just updated that branch with the latest master changes: https://github.com/carla-simulator/ros-bridge/tree/sync_carla_actor_creation
Can you try if this one solves your problem?
Be aware that in the original PR #571 Joel mentioned that in respect to this solution and the leaderboard. "...For instance, for the integration of the ROS-bridge with the leadeboard this will require doing extra ticks during the initialization of the stack...."
So I don't know if this works in conjunction with leaderboard setup.
Tested with a json that has multiple stationary lidars. On the master branch I observed same broken behavior. Switching to the other branch made the issue disappear.
I don't know anything about the leaderboard, so cannot comment on that.
Ok, thanks. So I just reopened the PR #571.
Using
This issue is similar to issues that claim to be fixed
I am running the bridge in synchronous mode (default settings). Using carla_spawn_objects with the following .json to spawn in stationary lidars:
Expected behaviour
The /tf topic gives the same transforms as defined in the .json
Actual results
Transformations in /tf are all zeros. Sometimes the first lidar is correct. It appears that overall load of the simulation is a factor as high values in
points_per_second
reduces the amount of correct transforms.Example output of
rostopic echo /tf
: