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

Adds a simple demo with multiple robots lifting the same overweight block #108

Merged
merged 22 commits into from
Jun 20, 2022

Conversation

arjo129
Copy link
Member

@arjo129 arjo129 commented May 10, 2022

Note: Not sure if we really should be keeping this stuff in mbzir_ign or we should have a mbzirc_demos package.

This demo demonstrates using multiple robots to lift the same overweight block.

Requires gazebosim/gz-physics#345

To Test (Edited by Aaron)

Make sure you have the right branch of gz-physics set up. Launch the test world file:

ign gazebo /your/path/to/mbzirc_ws/src/mbzirc/mbzirc_ign/worlds/test/multi_drone_lift.sdf

In another terminal run:

ros2 launch mbzirc_ign multi_uav_lift_demo.launch.py

You should see the drones spawn. After that run the simulators and let the robots fall onto the block. When the robots are resting on the block run:

ros2 run mbzirc_ign multi_uav_demo.py -z 3

You should see the robots lift the block up.
multi-robot-coordination

For the dragging demo, replace the above steps with

# launch world
ign gazebo /your/path/to/mbzirc_ws/src/mbzirc/mbzirc_ign/worlds/test/multi_drone_drag.sdf

# launch demo
ros2 launch mbzirc_ign multi_uav_drag_demo.launch.py

# start drones
ros2 run mbzirc_ign multi_uav_demo.py -z 3 -x 1 -y 4

# to detach
ros2 run mbzirc_ign multi_uav_demo.py -d

Signed-off-by: Arjo Chakravarty arjo@openrobotics.org

…lock.

> Note: Not sure if we really should be keeping this stuff in `mbzir_ign` or we should have a `mbzirc_demos` package.

This demo demonstrates using multiple robots to lift the same overweight block.

Requires gazebosim/gz-physics#345

## To Test
Make sure you have the right branch of gz-physics set up. Launch the test world file:
```bash
ign gazebo /your/path/to/mbzirc_ws/src/mbzirc/mbzirc_ign/worlds/test/multi_drone_lift.sdf
```
In another terminal run:
```bash
ros2 launch mbzirc_ign multi_uav_lift_demo.launch.py
```
You should see the drones spawn. After that run the simulators and let the robots fall onto the block. When the robots are resting on the block run:
```bash
ros2 run mbzirc_ign multi_uav_demo.py
```

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Copy link
Collaborator

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me!

@iche033
Copy link
Collaborator

iche033 commented May 10, 2022

Note: Not sure if we really should be keeping this stuff in mbzir_ign or we should have a mbzirc_demos package.

yeah if we end up adding more examples in the future, we can add a separate package for them

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
iche033 and others added 6 commits May 25, 2022 14:38
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
…s for dragging

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
aaronchongth and others added 7 commits June 8, 2022 11:27
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
* create unique gripper model files per uav

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* style

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* Checking if gipper model name is a substring instead of direct compare (#145)

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

Co-authored-by: Aaron Chong <aaronchongth@gmail.com>
iche033 and others added 7 commits June 16, 2022 16:25
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
…mo script

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@iche033
Copy link
Collaborator

iche033 commented Jun 20, 2022

CI looks good. Merging first. Will still require gazebosim/gz-physics#352 to work

@iche033 iche033 merged commit a73db91 into main Jun 20, 2022
@iche033 iche033 deleted the arjo/demo/multidrone_lift branch June 20, 2022 18:30
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.

3 participants