Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected collision tracking trajectory in Monza #91

Open
luigiberducci opened this issue Jul 28, 2023 · 0 comments
Open

unexpected collision tracking trajectory in Monza #91

luigiberducci opened this issue Jul 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@luigiberducci
Copy link
Collaborator

Describe the bug
Termination due to collision is triggered without any visible collision with the map boundaries.

To Reproduce
Steps to reproduce the behavior:

  1. Run the example script waypoint_follow.py from Monza or Austin.
  2. For example, make the env as follows:
env = gym.make(
        "f110_gym:f110-v0",
        config={
            "map": "Monza",
            "num_agents": 1,
            "timestep": 0.01,
            "integrator": "rk4",
            "control_input": "speed",
            "model": "st",
            "observation_config": {"type": "kinematic_state"},
            "params": {"mu": 1.0},
        },
        render_mode="human",
    )
  1. Experience collision at time 1.16

Expected behavior
No collision is expected, at least looking at the rendered simulation (see screenshot).

It looks to depend on the relatively high threshold in the collision detection method.
In fact, changing the ttc_thresh from 0.005 to 0.0000005, no collision occurs.
I think @nandantumu had a similar issue in other tracks too.

However, the problem is in the proximity of walls. Many new tracks present racelines with a very small margin to the wall.
If we lose further accuracy by changing the method for collision check (e.g., occupancy map), this issue might become more severe.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Python 3.8
  • Branch v1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants