-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sim launch position arg #43
Conversation
Code still not tested, could not figure out how to import world and trajectory into engine.py
Ideally would figure out how to not have to do this and just import them directly from auton directory
Rather than dealing with the two different Pose classes (from pose.py and rospy), just do the conversion directly in engine.oy
The sim now seems to start the buggy at the correct place, but auton doesn't seem to take it well and causes buggy to steer in very tight circles (buggy appears static on map)
…tics-Club/RoboBuggy2 into sim-launch-position-arg
I was imagining we have certain "keypoints/checkpoints" around the course where the buggies could start, instead of inputting a distance. Perhaps there's a different option upon launching that could allow you to specify the start location down to the particular coordinate/distance along the path, but in general, we're only going to be starting the simulation at a few positions right? @Jackack |
The idea is to use distance to specify the key points |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In engine.py, can you add the ability to pass starting position as a utm cooridnate as well?
Yeah, was gonna ask what if we want to start slightly off from the path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please update documentation as appropriate.
I requested a change to add raw coordinates as well, if that's what auto testing wants. There's also already a dictionary of key points in engine.py. It's commented out by this commit but we should keep that feature too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In engine.py, can you keep the starting_poses dictionary, and add the ability to use either distance or a key into the starting_poses dict?
Uses start_pos arg as dict key if valid key, and as distance otherwise
Added back in ability to use start_pos argument as a dictionary key for starting_poses, will work later on inputting utm coords |
What type of PR is this? (check all applicable)
Description
Changed arguments in single and 2 buggy simulator launch files to allow user to start buggy(s) from any distance along the planned trajectory by passing in command line arguments.
QA Instructions, Screenshots, Recordings
Tested single buggy sim on both Gabe's and my computer, and appears to behave as expected. Tested double buggy sim on my computer, and also seems to work as expected.