carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://scenario-runner.readthedocs.io/en/latest/
MIT License
536 stars 365 forks source link

did not match C++ signature: #1029

Open Daniel23-6 opened 1 year ago

Daniel23-6 commented 1 year ago

Describe the bug Dear expert, I have met this error, thanks very much.

To Reproduce Steps to reproduce the behavior:

  1. Running the RL in carla.
  2. See error Traceback (most recent call last): File "train_leftturn.py", line 262, in train_leftturn_task() File "train_leftturn.py", line 88, in train_leftturn_task observation = env.reset() File "/home/hu/dong/01github/Prioritized-Human-in-the-loop-End-to-end-Autonomous-Driving/env_leftturn.py", line 168, in reset self.agent.set_destination((120, 330, spawn_point_ego.location.z)) File "/home/hu/carla/PythonAPI/carla/agents/navigation/basic_agent.py", line 159, in set_destination end_waypoint = self._map.get_waypoint(end_location) Boost.Python.ArgumentError: Python argument types in Map.get_waypoint(Map, tuple) did not match C++ signature: get_waypoint(carla::client::Map {lvalue}, carla::geom::Location location, bool project_to_road=True, int lane_type=carla.libcarla.LaneType.Driving)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

AOOOOOA commented 10 months ago

Hi have you solved it?

nelsondmmg commented 7 months ago

Any news on this bug? I was using carla normally just until this moment, then the same error appeared.

Boost.Python.ArgumentError: Python argument types in

    Map.get_waypoint(Map, NoneType)

did not match C++ signature:

    get_waypoint(carla::client::Map {lvalue}, carla::geom::Location location, bool project_to_road=True, int lane_type=carla.libcarla.LaneType.Driving) was raised from the environment creator for CarlaEnv-pt-v0 with kwargs ({'render': False, 'carla_port': 2000, 'changing_weather_speed': 0, 'frame_skip': 60, 'observations_type': 'state-waypoint', 'traffic': True, 'vehicle_name': 'toyota.prius', 'map_name': 'Town02', 'autopilot': False, 'agent_name': 'RL', 'other_ru': 0})
Daraan commented 2 months ago

I have met this error, thanks very much.

@Daniel23-6 Just as explanation and fix self.agent.set_destination((120, 330, spawn_point_ego.location.z)) is wrong -> self.agent.set_destination(carla.Location(120, 330, spawn_point_ego.location.z)).

From what I can see this is a bug in another repository that was used.

@nelsondmmg

Something called map.get_waypoint(None) without a traceback one cannot tell where this error comes from.