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

Tier 1 waypoints for gates. #14

Closed
arbaazkhan2 opened this issue Jul 29, 2019 · 2 comments
Closed

Tier 1 waypoints for gates. #14

arbaazkhan2 opened this issue Jul 29, 2019 · 2 comments

Comments

@arbaazkhan2
Copy link

For Tier 1, are the gates/levels going to be fixed with what is provided in the example levels ?
If not is there going to be an API call that returns the pose of the next gate/all the gates ?

@ironclownfish
Copy link

Hi! The practice levels that we have distributed so far won't be used for qualification or competition rounds. Different gate configurations within the same general environments will be used for those.

@madratman
Copy link
Contributor

@arbaazkhan2 to answer the second part of your question:

gate_names_sorted_bad = sorted(client.simListSceneObjects("Gate.*"))
# In building 99, for example, gate_names_sorted_bad would be ['Gate0', 'Gate10_21', 'Gate11_23', 'Gate1_3', 'Gate2_5', 'Gate3_7', 'Gate4_9', 'Gate5_11', 'Gate6_13', 'Gate7_15', 'Gate8_17', 'Gate9_19']
# number after underscore is unreal garbage. and leading zeros are missing, so the following lines fix the same
gate_indices_bad = [int(gate_name.split('_')[0][4:]) for gate_name in gate_names_sorted_bad]
gate_indices_correct = sorted(range(len(gate_indices_bad)), key=lambda k:gate_indices_bad[k])
gate_names_sorted = [gate_names_sorted_bad[gate_idx] for gate_idx in gate_indices_correct]
gate_poses = [client.simGetObjectPose(gate_name) for gate_name in gate_names_sorted]
# gate_poses has a list of gates in the order of the track now!

To reiterate what @ironclownfish said, yes, the current tracks are "training tracks". For quals, we'll have "test tracks".
For planning only tier, you'd get access to the ground truth poses of gates, but that would not be the case of tiers using perception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants