Skip to content

PathTracker generate wrong route #81

@Morphlng

Description

@Morphlng

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:

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):

path_draw

It takes a right turn, and we can check the end point, it's far away from what we defined:

planner_route

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions