-
Notifications
You must be signed in to change notification settings - Fork 79
Description
I want to apply traffic_manager.set_path(actor, route)
(This api is missed in the doc, but actually available and described in this PR) to navigate the actor to desired end point when "auto_control" is enabled.
However, the path generated by Macad's PathTracker is not correct. I've tested Scenario SSUI3C_TOWN3
, the start/end position is defined as:
macad-gym/src/macad_gym/carla/scenarios.py
Lines 43 to 61 in 1006e84
SSUI3C_TOWN3 = { | |
"map": "Town03", | |
"actors": { | |
"car1": { | |
"start": [170.5, 80, 0.4], | |
"end": [144, 59, 0] | |
}, | |
"car2": { | |
"start": [188, 59, 0.4], | |
"end": [167, 75.7, 0.13], | |
}, | |
"car3": { | |
"start": [147.6, 62.6, 0.4], | |
"end": [191.2, 62.7, 0], | |
} | |
}, | |
"weather_distribution": [0], | |
"max_steps": 500 | |
} |
Take car1
as an example, this car should take a left turn. But the route generated by PathTracker is like this (green line):
It takes a right turn, and we can check the end point, it's far away from what we defined:
I've noticed that Macad-Gym copied a PythonAPI from Carla 0.9.6 distribution, maybe this is the reason why the generated path is incorrect. I'm trying to apply the Carla 0.9.13 PythonAPI to see whether it will make a difference.