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

SIM: Set up gazebo with ros2 control #250

Open
nico-palmar opened this issue Jul 14, 2023 · 0 comments
Open

SIM: Set up gazebo with ros2 control #250

nico-palmar opened this issue Jul 14, 2023 · 0 comments
Assignees

Comments

@nico-palmar
Copy link
Contributor

nico-palmar commented Jul 14, 2023

Need to be able to control the drivetrain in gazebo.

We want to use the GazeboSystem ros2 control built in package to do this.

Right now, we have the issue that our actual rover uses a actuator interface to set up our motors, but the gazebo plugin is expecting a system interface. To fix this, we should:

  1. Create a new macro to parameterize a joint in simulation (requires joint name, command interface, and two state interfaces).
  2. Create another macro that calls the ros2 control with the gazebo system plugin, and calls the 5 joint plugins.
  3. Use xml if/unless logic to check whether or not sim is running (if sim, use the actuator ros2 control tags, otherwise the new system tags).

Before we can merge stuff in, we probably want both real robot hardware and simulation to have the same launch file as an entry point, but just set sim:=true or sim:=false within the launch file depending on what we want. This is more so a matter of cleaning up the code and making it look nice (but important to keep a work-able codebase going).

@nico-palmar nico-palmar converted this from a draft issue Jul 14, 2023
@andrew2002zhao andrew2002zhao moved this from In Progress to In Review in SOFTWARE: TASK BOARD Jul 21, 2023
@nico-palmar nico-palmar moved this from In Review to Done in SOFTWARE: TASK BOARD Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants