-
Notifications
You must be signed in to change notification settings - Fork 73
Package Delivery Robotics Infrastructure update #765
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
cc40776
Electromagnet plugin and add it to the robot for the amazon delivery …
aquintan4 fc10720
drone gripper update (visual for the gripper in xacro), make the grip…
aquintan4 c7ba917
avoid ventral camera oclusion with magnet
aquintan4 f8f90a3
reduce attach distance of the electromagnet
aquintan4 27c3766
fix reset when grabbing item
aquintan4 1503b34
Move wrong urdf definitions
javizqh 6f32e1b
make robot, world independent
aquintan4 1245850
merge
aquintan4 6be8d8a
fix quadrator xacro
aquintan4 b3f91d2
electromagnet plugin in macro
aquintan4 691692a
fix reset on drone gripper
aquintan4 7777327
fix drone reset when holding the package
aquintan4 fbad6a0
fix magnet reset
aquintan4 6024e6b
increase magnet pick distance
aquintan4 596d81f
kill plugin node on reset
aquintan4 96b9d80
update branch
aquintan4 472f1ab
fix gripper
aquintan4 816b2f5
update branch + fix drone gripper
aquintan4 4a5c220
update package delivery world db
aquintan4 e559bf5
fix magnet
aquintan4 ed15347
Rebase
javizqh 8e3e611
Rebase
javizqh bd8ff86
reduce attach distance of the electromagnet
aquintan4 e7bec74
Rebase
javizqh 79e820c
Rebase
javizqh 01f80be
Rebase
javizqh 0168dbf
Rebase
javizqh 3e0f3fc
Bump db
javizqh e614940
Fix quadrotor
javizqh 615f095
Fix plugin
javizqh 7f22da7
Fix launcher
javizqh deb347c
Fix rebase error
javizqh 4e7f8c4
Add comments
javizqh 28909b7
Remove pause reset
javizqh b9b82c1
Linter
javizqh c29120b
Merge branch 'humble-devel' into drone-amazon-delivery
javizqh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,16 +3,51 @@ | |
| xmlns:xacro="http://ros.org/wiki/xacro"> | ||
|
|
||
| <xacro:arg name="camera" default="true"/> | ||
| <xacro:arg name="gripper" default="false"/> | ||
| <xacro:arg name="namespace" default="drone0"/> | ||
| <xacro:property name="namespace" value="$(arg namespace)"/> | ||
| <xacro:property name="gripper" value="$(arg gripper)"/> | ||
|
|
||
| <xacro:include filename="$(find custom_robots)/models/quadrotor/quadrotor_gz.urdf.xacro"/> | ||
| <xacro:include filename="$(find custom_robots)/models/quadrotor/quadrotor_common.urdf.xacro"/> | ||
|
|
||
| <xacro:quadrotor namespace="${namespace}"/> | ||
| <xacro:quadrotor namespace="${namespace}" gripper="${gripper}"/> | ||
|
|
||
| <xacro:if value="$(arg camera)"> | ||
| <xacro:camera xyz="0 0 0" rpy="0 0 0" mass="0.035" name="frontal_cam" parent="base_link" namespace="${namespace}"/> | ||
| <xacro:camera xyz="0 0 0" rpy="0 1.57 0" mass="0.035" name="ventral_cam" parent="base_link" namespace="${namespace}"/> | ||
| </xacro:if> | ||
| <<<<<<< HEAD | ||
|
|
||
| <!-- Electromagnet: flat ring hugging the drone belly, with an open center | ||
| so the downward ventral camera is not blocked (package_delivery). --> | ||
| <xacro:if value="$(arg gripper)"> | ||
| <link name="magnet"> | ||
| <inertial> | ||
| <mass value="0.02"/> | ||
| <inertia ixx="2e-5" ixy="0" ixz="0" iyy="2e-5" iyz="0" izz="4e-5"/> | ||
| </inertial> | ||
| <xacro:magnet_ring_seg i="0" n="12" radius="0.06"/> | ||
| </link> | ||
| <joint name="magnet_joint" type="fixed"> | ||
| <origin rpy="0 0 0" xyz="0 0 -0.05"/> | ||
| <parent link="base_link"/> | ||
| <child link="magnet"/> | ||
| </joint> | ||
|
|
||
| <!-- Magnetic gripper: model plugin, so it belongs to this drone (works | ||
| with renames / several drones). The exercise publishes the graspable | ||
| list on the graspable topic. --> | ||
| <gazebo> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This must be in gz.urdf.xacro |
||
| <plugin filename="libdrone_gripper.so" name="drone_gripper::DroneGripper"> | ||
| <gripper_link>base_link</gripper_link> | ||
| <attach_distance>0.15</attach_distance> | ||
| <magnet_topic>/${namespace}/gripper/magnet</magnet_topic> | ||
| <state_topic>/${namespace}/gripper/attached</state_topic> | ||
| <graspable_topic>/${namespace}/gripper/graspable</graspable_topic> | ||
| </plugin> | ||
| </gazebo> | ||
| </xacro:if> | ||
| ======= | ||
|
javizqh marked this conversation as resolved.
Outdated
|
||
| >>>>>>> upstream/drone-amazon-delivery | ||
| </robot> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| cmake_minimum_required(VERSION 3.8) | ||
| project(drone_gripper) | ||
|
|
||
| if(NOT CMAKE_CXX_STANDARD) | ||
| set(CMAKE_CXX_STANDARD 17) | ||
| endif() | ||
|
|
||
| if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
| add_compile_options(-Wall -Wextra -Wpedantic) | ||
| endif() | ||
|
|
||
| ############################ | ||
| # Dependencies | ||
| ############################ | ||
|
|
||
| find_package(ament_cmake REQUIRED) | ||
| find_package(rclcpp REQUIRED) | ||
| find_package(std_msgs REQUIRED) | ||
|
|
||
| find_package(gz-sim8 REQUIRED) | ||
| find_package(gz-plugin2 REQUIRED) | ||
|
|
||
| ############################ | ||
| # Plugin library | ||
| ############################ | ||
|
|
||
| add_library(drone_gripper SHARED | ||
| src/drone_gripper.cpp | ||
| ) | ||
|
|
||
| target_link_libraries(drone_gripper | ||
| gz-sim8::gz-sim8 | ||
| gz-plugin2::gz-plugin2 | ||
| ) | ||
|
|
||
| ament_target_dependencies(drone_gripper | ||
| rclcpp | ||
| std_msgs | ||
| ) | ||
|
|
||
| ############################ | ||
| # Install plugin | ||
| ############################ | ||
|
|
||
| install( | ||
| TARGETS drone_gripper | ||
| LIBRARY DESTINATION lib | ||
| ) | ||
|
|
||
| ############################ | ||
| # Environment hook (.dsv) | ||
| ############################ | ||
|
|
||
| install( | ||
| FILES env-hooks/drone_gripper.dsv | ||
| DESTINATION share/${PROJECT_NAME}/environment | ||
| ) | ||
|
|
||
| ############################ | ||
| # Export | ||
| ############################ | ||
|
|
||
| ament_export_libraries(drone_gripper) | ||
|
|
||
| ament_export_dependencies( | ||
| gz-sim8 | ||
| gz-plugin2 | ||
| ) | ||
|
|
||
| ament_package() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| prepend-non-duplicate;GZ_SIM_SYSTEM_PLUGIN_PATH;lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?xml version="1.0"?> | ||
| <package format="3"> | ||
|
|
||
| <name>drone_gripper</name> | ||
| <version>0.0.1</version> | ||
|
|
||
| <description>Gazebo Harmonic magnetic gripper system plugin for drones</description> | ||
|
|
||
| <maintainer email="dev@todo.com">dev</maintainer> | ||
|
|
||
| <license>Apache-2.0</license> | ||
|
|
||
| <buildtool_depend>ament_cmake</buildtool_depend> | ||
|
|
||
| <depend>rclcpp</depend> | ||
|
|
||
| <depend>std_msgs</depend> | ||
|
|
||
| <depend>gz-sim</depend> | ||
|
|
||
| <export> | ||
| <build_type>ament_cmake</build_type> | ||
| </export> | ||
|
|
||
| </package> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.