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

Migration to gz harmonic #479

Draft
wants to merge 39 commits into
base: humble-devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2efd015
modified assets used for rescue_people exercise
Arcane-01 Jun 17, 2024
b3a4e38
modified assets used for logos
Arcane-01 Jun 17, 2024
4e781d2
migrated drone_assets to gz-harmonic
Arcane-01 Jun 17, 2024
2d21085
added new models for ocean and polaris_ranger_ev
Arcane-01 Jun 17, 2024
b38f2c8
deleted unused assets of polaris_ranger_ev
Arcane-01 Jun 17, 2024
bbc5a38
migrated cylinder and wall models to gz harmonic
Arcane-01 Jun 18, 2024
33848c5
added a new quadrotor model in drone_assets
Arcane-01 Jun 29, 2024
b556e5b
added rescue_people world in drone_assets
Arcane-01 Jun 29, 2024
847bf90
updated CMakeLists for drone_assets/worlds
Arcane-01 Jun 30, 2024
012e8e0
removed quadrotor_base model from drone_assets
Arcane-01 Jul 2, 2024
874c0ca
added assets and created a new follow_road world
Arcane-01 Jul 8, 2024
8463452
updated follow_road world to create a closed track
Arcane-01 Jul 8, 2024
1938be7
updated the image paths for osrf_first_office
Arcane-01 Jul 10, 2024
a07eff8
Renamed world tag name
pariaspe Jul 11, 2024
08a0b7d
updated .env script for gz harmonic
Arcane-01 Jun 30, 2024
a86ab90
modified .env file
Arcane-01 Jul 14, 2024
1cacc25
added config files rescue_people harmonic and gz gui
Arcane-01 Jul 14, 2024
46c4159
renamed the harmonic worlds
Arcane-01 Jul 14, 2024
d029893
updated aerostack2 launcher for gz sim
Arcane-01 Jul 14, 2024
89ec4ea
updated files for gz sim
Arcane-01 Jul 23, 2024
99edef8
changed the quadrotor camera model name to frontal
Arcane-01 Aug 15, 2024
5acb080
updated dependencies for jderobot_drones
Arcane-01 Aug 15, 2024
a99421b
added quadrotor_dual_cam model and bridges yaml
pariaspe Nov 21, 2024
f89547d
update drone gzharmonic launchers
pariaspe Nov 21, 2024
696435f
fixed typo on launch arg
pariaspe Nov 21, 2024
5939219
installing drone assets bridges file
pariaspe Nov 21, 2024
94e689f
physics name now matches step_size
pariaspe Nov 21, 2024
50f8058
join as2 config files and remove gzsim launcher
pariaspe Dec 11, 2024
7f854f2
add specific launcher for rescue people exercise
pariaspe Dec 11, 2024
db831fe
updated setup.py for jderobot_drones/launch directory
Arcane-01 Dec 16, 2024
b187517
updated rescue_people launch file
Arcane-01 Dec 16, 2024
28ab7d7
[fix] launch context override
pariaspe Dec 23, 2024
efac038
updated rescue people harmonic world name
Arcane-01 Dec 26, 2024
c7bf75c
Merge branch 'humble-devel' into prajyot/migration_to_gz_harmonic
javizqh Jan 10, 2025
b80b893
Add rescue people harmonic universe to db
javizqh Jan 10, 2025
566fa64
Change universe type
javizqh Jan 10, 2025
8bcfc51
Add intel camera to sdf and to launcher
javizqh Jan 10, 2025
e7a0a24
Fix camera orientation and resolution
javizqh Jan 15, 2025
7271a3e
Merge pull request #480 from JdeRobot/fix-camera-image-drone-harmonic
javizqh Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CustomRobots/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ install(DIRECTORY

# DRONE_ASSETS
drone_assets/models
drone_assets/worlds
drone_assets/bridges

# GLOBAL_NAVIGATION
taxi_navigator/models
Expand Down
83 changes: 83 additions & 0 deletions CustomRobots/drone_assets/bridges/rescue_people.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Clock
- ros_topic_name: "/clock"
gz_topic_name: "/clock"
ros_type_name: "rosgraph_msgs/msg/Clock"
gz_type_name: "gz.msgs.Clock"
direction: GZ_TO_ROS

# gz topic published by IMU plugin
- ros_topic_name: "sensor_measurements/imu"
gz_topic_name: "/world/empty/model/drone0/model/imu/link/internal/sensor/imu/imu"
ros_type_name: "sensor_msgs/msg/Imu"
gz_type_name: "gz.msgs.IMU"
direction: GZ_TO_ROS

# TFs
- ros_topic_name: "/tf"
gz_topic_name: "/model/drone0/pose"
ros_type_name: "tf2_msgs/msg/TFMessage"
gz_type_name: "gz.msgs.Pose_V"
direction: GZ_TO_ROS

- ros_topic_name: "/tf"
gz_topic_name: "/world/empty/model/drone0/pose"
ros_type_name: "tf2_msgs/msg/TFMessage"
gz_type_name: "gz.msgs.Pose_V"
direction: GZ_TO_ROS

- ros_topic_name: "/tf"
gz_topic_name: "/model/drone0/pose_static"
ros_type_name: "tf2_msgs/msg/TFMessage"
gz_type_name: "gz.msgs.Pose_V"
direction: GZ_TO_ROS

- ros_topic_name: "/tf"
gz_topic_name: "/world/empty/model/drone0/pose_static"
ros_type_name: "tf2_msgs/msg/TFMessage"
gz_type_name: "gz.msgs.Pose_V"
direction: GZ_TO_ROS

# Battery plugin
- ros_topic_name: "sensor_measurements/battery"
gz_topic_name: "/model/drone0/battery/linear_battery/state"
ros_type_name: "sensor_msgs/msg/BatteryState"
gz_type_name: "gz.msgs.BatteryState"
direction: GZ_TO_ROS

# Multicopter plugin
- ros_topic_name: "/gz/drone0/cmd_vel"
gz_topic_name: "/model/drone0/cmd_vel"
ros_type_name: "geometry_msgs/msg/Twist"
gz_type_name: "gz.msgs.Twist"
direction: ROS_TO_GZ

- ros_topic_name: "/gz/drone0/arm"
gz_topic_name: "/model/drone0/velocity_controller/enable"
ros_type_name: "std_msgs/msg/Bool"
gz_type_name: "gz.msgs.Boolean"
direction: ROS_TO_GZ

# Payload plugin
- ros_topic_name: "sensor_measurements/frontal_camera/image_raw"
gz_topic_name: "/world/empty/model/drone0/model/frontal_cam/link/hd_camera/sensor/camera/image"
ros_type_name: "sensor_msgs/msg/Image"
gz_type_name: "gz.msgs.Image"
direction: GZ_TO_ROS

- ros_topic_name: "sensor_measurements/frontal_camera/camera_info"
gz_topic_name: "/world/empty/model/drone0/model/frontal_cam/link/hd_camera/sensor/camera/camera_info"
ros_type_name: "sensor_msgs/msg/CameraInfo"
gz_type_name: "gz.msgs.CameraInfo"
direction: GZ_TO_ROS

- ros_topic_name: "sensor_measurements/ventral_camera/image_raw"
gz_topic_name: "/world/empty/model/drone0/model/ventral_cam/link/hd_camera/sensor/camera/image"
ros_type_name: "sensor_msgs/msg/Image"
gz_type_name: "gz.msgs.Image"
direction: GZ_TO_ROS

- ros_topic_name: "sensor_measurements/ventral_camera/camera_info"
gz_topic_name: "/world/empty/model/drone0/model/ventral_cam/link/hd_camera/sensor/camera/camera_info"
ros_type_name: "sensor_msgs/msg/CameraInfo"
gz_type_name: "gz.msgs.CameraInfo"
direction: GZ_TO_ROS

This file was deleted.

15 changes: 9 additions & 6 deletions CustomRobots/drone_assets/models/arrow/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@
</plane>
</geometry>
<material>
<script>
<uri>model://arrow/materials/scripts</uri>
<uri>model://arrow/materials/textures</uri>
<name>vrc/arrow</name>
</script>
</material>
<ambient>0.8 1.0 0.8 1.0</ambient>
<diffuse>0.8 1.0 0.8 1.0</diffuse>
<specular>0.1 0.1 0.1 1.0</specular>
<pbr>
<metal>
<albedo_map>model://arrow/materials/textures/arrow.png</albedo_map>
</metal>
</pbr>
</material>
</visual>
</link>
</model>
Expand Down

This file was deleted.

13 changes: 8 additions & 5 deletions CustomRobots/drone_assets/models/asphalt_plane/model-1_4.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
</box>
</geometry>
<material>
<script>
<uri>model://asphalt_plane/materials/scripts</uri>
<uri>model://asphalt_plane/materials/textures</uri>
<name>vrc/asphalt</name>
</script>
<ambient>0.5 0.5 0.5 1.0</ambient>
<diffuse>0.5 0.5 0.5 1.0</diffuse>
<specular>0.2 0.2 0.2 1.0</specular>
<pbr>
<metal>
<albedo_map>model://asphalt_plane/materials/textures/tarmac.png</albedo_map>
</metal>
</pbr>
</material>
</visual>
</link>
Expand Down
13 changes: 8 additions & 5 deletions CustomRobots/drone_assets/models/asphalt_plane/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
</box>
</geometry>
<material>
<script>
<uri>model://asphalt_plane/materials/scripts</uri>
<uri>model://asphalt_plane/materials/textures</uri>
<name>vrc/asphalt</name>
</script>
<ambient>0.5 0.5 0.5 1.0</ambient>
<diffuse>0.5 0.5 0.5 1.0</diffuse>
<specular>0.2 0.2 0.2 1.0</specular>
<pbr>
<metal>
<albedo_map>model://asphalt_plane/materials/textures/tarmac.png</albedo_map>
</metal>
</pbr>
</material>
</visual>
</link>
Expand Down
26 changes: 12 additions & 14 deletions CustomRobots/drone_assets/models/boat_beacon/boat_beacon.sdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<sdf version='1.6'>
<model name='boat_beacon'>
<static>true</static>
<link name='base_link'>
<pose>0 0 0 0 -0 0</pose>
<inertial>
Expand Down Expand Up @@ -270,10 +271,9 @@
</mesh>
</geometry>
<material>
<script>
<name>Gazebo/DarkGrey</name>
<uri>__default__</uri>
</script>
<ambient>0.1 0.1 0.1 1</ambient>
<diffuse>0.1 0.1 0.1 1</diffuse>
<specular>0.05 0.05 0.05 1</specular>
</material>
</visual>
<visual name='base_link_fixed_joint_lump__right_battery_visual_visual_2'>
Expand All @@ -285,10 +285,9 @@
</mesh>
</geometry>
<material>
<script>
<name>Gazebo/DarkGrey</name>
<uri>__default__</uri>
</script>
<ambient>0.1 0.1 0.1 1</ambient>
<diffuse>0.1 0.1 0.1 1</diffuse>
<specular>0.05 0.05 0.05 1</specular>
</material>
</visual>
<visual name='right_engine_link_visual'>
Expand Down Expand Up @@ -345,12 +344,11 @@
<size>0.9 0.9 0.1</size>
</box>
</geometry>
<material>
<script>
<uri>file://media/materials/scripts/gazebo.material</uri>
<name>Gazebo/Green</name>
</script>
</material>
<material>
<ambient>0 1 0 1</ambient>
<diffuse>0 1 0 1</diffuse>
<specular>0.1 0.1 0.1 1</specular>
</material>
</visual>
</link>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<unit meter="1.000000" name="centimeter"/>
<up_axis>Z_UP</up_axis>
</asset>
<library_images>
<image id="Payload_ncl1_1-image" name="Payload_ncl1_1">
<init_from>battery.png</init_from>
</image>
</library_images>
<library_materials>
<material id="Payload" name="Payload">
<instance_effect url="#Payload-fx"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</library_lights>
<library_images>
<image id="start_pad_png" name="start_pad_png">
<init_from>start_pad.png</init_from>
<init_from>model://custom_box_target_green/materials/textures/start_pad.png</init_from>
</image>
</library_images>
<library_effects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</asset>
<library_images>
<image id="start_pad_png" name="start_pad_png">
<init_from>end_pad.png</init_from>
<init_from>model://custom_box_target_red/materials/textures/end_pad.png</init_from>
</image>
</library_images>
<library_effects>
Expand Down
10 changes: 3 additions & 7 deletions CustomRobots/drone_assets/models/cylinder1/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
</cylinder>
</geometry>
<material>
<script>
<name>Gazebo/Grey</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script>
<!-- Brown -->
<ambient>0.9 0.6 0.3 1</ambient>
<diffuse>0.698039 0.698039 0.698039 1</diffuse>
<specular>0.898039 0.898039 0.898039 1 20</specular>
<ambient>0.25 0.15 0.05 1</ambient>
<diffuse>0.54 0.27 0.07 1</diffuse>
<specular>0.63 0.32 0.18 1</specular>
<emissive>0 0 0 1</emissive>
<shader type='vertex'>
<normal_map>__default__</normal_map>
Expand Down
8 changes: 2 additions & 6 deletions CustomRobots/drone_assets/models/cylinder2/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@
</cylinder>
</geometry>
<material>
<script>
<name>Gazebo/Grey</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script>
<!-- Grey -->
<ambient>0.4 0.6 0.3 1</ambient>
<diffuse>0.698039 0.698039 0.698039 1</diffuse>
<specular>0.898039 0.898039 0.898039 1 20</specular>
<emissive>0.1 0 0.1 1</emissive>
<specular>0.898039 0.898039 0.898039 1</specular>
<emissive>0 0 0 1</emissive>
<shader type='vertex'>
<normal_map>__default__</normal_map>
</shader>
Expand Down
6 changes: 1 addition & 5 deletions CustomRobots/drone_assets/models/cylinder3/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
</cylinder>
</geometry>
<material>
<script>
<name>Gazebo/Grey</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script>
<!-- Yellow -->
<ambient>0.698039 0.698039 0.698039 1</ambient>
<diffuse>0.698039 0.698039 0.698039 1</diffuse>
<specular>0.898039 0.898039 0.898039 1 20</specular>
<specular>0.898039 0.898039 0.898039 1</specular>
<emissive>1 1 0 1</emissive>
<shader type='vertex'>
<normal_map>__default__</normal_map>
Expand Down

This file was deleted.

17 changes: 10 additions & 7 deletions CustomRobots/drone_assets/models/face1/model.sdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0'?>
<sdf version='1.4'>
<sdf version='1.6'>
<model name='face1'>
<static>true</static>
<link name='link'>
Expand Down Expand Up @@ -31,12 +31,15 @@
</plane>
</geometry>
<material>
<script>
<uri>model://face1/materials/scripts</uri>
<uri>model://face1/materials/textures</uri>
<name>vrc/face1</name>
</script>
</material>
<ambient>0.8 1.0 0.8 1.0</ambient>
<diffuse>0.8 1.0 0.8 1.0</diffuse>
<specular>0.1 0.1 0.1 1.0</specular>
<pbr>
<metal>
<albedo_map>model://face1/materials/textures/face1.png</albedo_map>
</metal>
</pbr>
</material>
</visual>
</link>
</model>
Expand Down
Loading