carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.38k stars 3.69k forks source link

Not called on the RSS sensor callback #3187

Closed amelal-aptol closed 3 years ago

amelal-aptol commented 4 years ago

Hello Carla team,

I came across an issue while trying to use the RSS sensor, while attaching it to a vehicle and I have another car nearby, I am not getting called on the sensor callback, I am on version 0.9.9.4 both server and client, and my code looks something like this:

    rss_blueprint = self._kinesim.world.get_blueprint_library().find("sensor.other.rss")
    transform = carla.Transform(carla.Location(x=self.x, y=self.y, z=self.z))
    self.sensor = self._kinesim.world.spawn_actor(rss_blueprint, transform, attach_to=vehicle._vehicle)
    self.sensor.listen(self._on_rss_responses)

and the callback:

    def _on_rss_responses(self, response):
        print(response.timestamp)
        print(response.response_valid)
        print(response.proper_response)
        print(response.acceleration_restriction)
        print(response.ego_dynamics_on_route)

Is there something I am missing?

Thanks

germanros1987 commented 4 years ago

@fpasch could you please have a look at this?

lucasnmatias commented 4 years ago

I'm having the same problem, when attaching RSS sensor no error is thrown but the callback function is never called. Did you managed to solve this?

fpasch commented 4 years ago

Have you checked if the example script manual_control_rss.py is working as expected?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.