carla-simulator / carla

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

Client disconnect when using client.send_control #2395

Closed pirate-lofy closed 4 years ago

pirate-lofy commented 4 years ago

I'm trying to make a Carla environment for reinforcement learning algorithms using Carla 0.8.2, it's going really well util i send a control using function client.send_control which makes the client disconnect from the server and try to connect again. the client I'm using is an object of the class CarlaClient client=carla.client.CarlaClient('localhost',2000); client.connect(); client.send_control( steer=0.5, throttle=0.5 , brake=0, hand_brake=False, reverse=False) after the last line, the client disconnect from the server I traced the code and found that the disconnecting happens after the line self._control_client.write(pb_message.SerializeToString()) inside the send_control function I tried to trace function _control_client.write() but it seems to work without problems.

stale[bot] commented 4 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.