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

Added support for multiple cars in sim #134

Closed
wants to merge 9 commits into from
Closed

Added support for multiple cars in sim #134

wants to merge 9 commits into from

Conversation

hmcty
Copy link
Member

@hmcty hmcty commented Apr 16, 2022

Changes

  • Modified sim and viz to allow for any number of cars
  • Condensed ground truth and realistic viz into a single window
  • Refactored launch files to allow for easy creation of new cars
  • Changed variable and function names to conform to rktl standard style

Testing

You can launch the official launch file rocket_league.launch.

Then add the car in sim (kind of like setting a new car on the field):

rosservice /sim_create_car "name: 'car1'
init_pos:
  x: 0.0
  y: 0.0
  z: 0.0
init_yaw: 0.0
reset_to_random_pose: true"

Then add the car to the network:

roslaunch rktl_launch car.launch car_id:=1

To see the new car in the visualizer:

rosservice /visualizer_refresh "{}"

Future work for sim & viz + misc. updates

As of now, cars are launched with an agent type of either none, planner or autonomy. But I was thinking we could change that to control_type, then easily launch xbox and keyboard interfaces in the same launch file. With the options being: none, bezier_agent, autonomy_agent, xbox, or keyboard.

I started exploring a few different domain adaptation and randomization methods. Which could help detect issues in planners early and improve the usefulness of autonomy agents. So hopefully I can propagate some of those changes into the sim soon.

Going to push another PR today or tomorrow with additional bezier planner changes.

@hmcty hmcty marked this pull request as ready for review April 16, 2022 20:04
@hmcty hmcty mentioned this pull request Jun 6, 2022
@dgerblick
Copy link
Member

Made redundant by #146

@dgerblick dgerblick closed this Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants