Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: osrf/vrx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: osrf/vrx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: jessica/wildlife
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Jul 12, 2022

  1. Improving world looking.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 12, 2022
    Copy the full SHA
    5b2521e View commit details

Commits on Jul 15, 2022

  1. Move models to Fuel

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 15, 2022
    Copy the full SHA
    2498b17 View commit details
  2. Restoring coast_waves

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 15, 2022
    Copy the full SHA
    9bed1e3 View commit details

Commits on Jul 25, 2022

  1. Loading WAM-V

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 25, 2022
    Copy the full SHA
    c85381a View commit details
  2. Merge from gazebosim

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 25, 2022
    Copy the full SHA
    06a6966 View commit details
  3. Tweak CircleSegment

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 25, 2022
    Copy the full SHA
    ec51f48 View commit details
  4. Tweak

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Jul 25, 2022
    Copy the full SHA
    84124d0 View commit details

Commits on Aug 3, 2022

  1. Wave plugin refactor.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 3, 2022
    Copy the full SHA
    f12a95d View commit details

Commits on Aug 9, 2022

  1. Porting buoyancy plugin from VRX.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 9, 2022
    Copy the full SHA
    6fe9ebe View commit details

Commits on Aug 16, 2022

  1. All ported but not working.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 16, 2022
    Copy the full SHA
    65abef5 View commit details

Commits on Aug 18, 2022

  1. Working wam-v

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 18, 2022
    Copy the full SHA
    ca65751 View commit details

Commits on Aug 19, 2022

  1. Clean

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 19, 2022
    Copy the full SHA
    57498a5 View commit details
  2. Clean

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 19, 2022
    Copy the full SHA
    2ec8259 View commit details

Commits on Aug 22, 2022

  1. Replacing Surface with SimpleBuoyancy.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 22, 2022
    Copy the full SHA
    4f20d12 View commit details

Commits on Aug 23, 2022

  1. 2022 buoys.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 23, 2022
    Copy the full SHA
    37cfae7 View commit details
  2. Initial layout for ScoringPlugin.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 23, 2022
    Copy the full SHA
    b898311 View commit details
  3. Basic version working.

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 23, 2022
    Copy the full SHA
    a56a732 View commit details

Commits on Aug 24, 2022

  1. Tweaks

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 24, 2022
    Copy the full SHA
    a5509db View commit details

Commits on Aug 25, 2022

  1. Pull the scoring plugin

    Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
    caguero committed Aug 25, 2022
    Copy the full SHA
    ef2115b View commit details

Commits on Aug 26, 2022

  1. Stationkeeping plugin

    j-herman committed Aug 26, 2022
    Copy the full SHA
    36dddac View commit details

Commits on Aug 29, 2022

  1. Turn off markers

    j-herman committed Aug 29, 2022
    Copy the full SHA
    b67c3e2 View commit details

Commits on Aug 30, 2022

  1. Copy the full SHA
    0574be9 View commit details
  2. Clean up naming conventions

    j-herman committed Aug 30, 2022
    Copy the full SHA
    8b98033 View commit details
  3. Merge branch 'jessica/stationkeeping2' of https://github.com/osrf/vrx

    …into jessica/stationkeeping2
    j-herman committed Aug 30, 2022
    Copy the full SHA
    086bbb5 View commit details

Commits on Aug 31, 2022

  1. Copy the full SHA
    868b323 View commit details

Commits on Sep 5, 2022

  1. Copy the full SHA
    215c6e6 View commit details

Commits on Sep 21, 2022

  1. Wildlife plugin compiles

    j-herman committed Sep 21, 2022
    Copy the full SHA
    c04a350 View commit details

Commits on Sep 27, 2022

  1. Tests for model insertion

    j-herman committed Sep 27, 2022
    Copy the full SHA
    281426d View commit details
42 changes: 39 additions & 3 deletions vrx_ign/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@ find_package(ignition-plugin1 REQUIRED COMPONENTS loader register)
set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR})
find_package(ignition-rendering6 REQUIRED)
set(IGN_RENDERING_VER ${ignition-rendering6_VERSION_MAJOR})
find_package(ignition-utils1 REQUIRED)
set(IGN_UTILS_VER ${ignition-utils1_VERSION_MAJOR})
find_package(sdformat12 REQUIRED)

find_package(std_msgs REQUIRED)
@@ -44,10 +46,43 @@ install(
TARGETS Waves
DESTINATION lib)

# Buoyancy
add_library(SimpleBuoyancy SHARED
src/SimpleBuoyancy.cc
src/PolyhedronVolume.cc
src/ShapeVolume.cc
)
target_link_libraries(SimpleBuoyancy PUBLIC
ignition-common${IGN_COMMON_VER}::ignition-common${IGN_COMMON_VER}
ignition-gazebo${IGN_GAZEBO_VER}::core
ignition-math${IGN_MATH_VER}
Waves
)
install(
TARGETS SimpleBuoyancy
DESTINATION lib)


# Base scoring plugin
add_library(ScoringPlugin SHARED
src/ScoringPlugin.cc
)
target_link_libraries(ScoringPlugin PUBLIC
ignition-gazebo${IGN_GAZEBO_VER}::core
ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
ignition-rendering${IGN_RENDERING_VER}::ignition-rendering${IGN_RENDERING_VER}
ignition-utils${IGN_UTILS_VER}::ignition-utils${IGN_UTILS_VER}
Waves
)
install(
TARGETS ScoringPlugin
DESTINATION lib)

# Plugins
list(APPEND VRX_IGN_PLUGINS
WildlifeScoringPlugin
StationkeepingScoringPlugin
SimpleHydrodynamics
Surface
WaveVisual
)

@@ -57,8 +92,10 @@ foreach(PLUGIN ${VRX_IGN_PLUGINS})
ignition-gazebo${IGN_GAZEBO_VER}::core
ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
ignition-rendering${IGN_RENDERING_VER}::ignition-rendering${IGN_RENDERING_VER}
ignition-utils${IGN_UTILS_VER}::ignition-utils${IGN_UTILS_VER}
Waves
)
ScoringPlugin
)
endforeach()

install(
@@ -78,5 +115,4 @@ install(DIRECTORY
launch
DESTINATION share/${PROJECT_NAME})


ament_package()
20 changes: 20 additions & 0 deletions vrx_ign/models/crocodile_buoy/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<model>
<name>crocodile_static</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>

<author>
<name>Carlos Agüero</name>
<email>caguero@openrobotics.org</email>
</author>

<author>
<name>Rafi Abdullah</name>
<email>rafi@openrobotics.org</email>
</author>

<description>
A crocodile buoy without motion plugin for the RobotX 2022 competition.
</description>
</model>
55 changes: 55 additions & 0 deletions vrx_ign/models/crocodile_buoy/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="crocodile_buoy">
<link name="link">
<inertial>
<pose>0 0 -2 0 0 0</pose>
<!-- Mass determined based on buoyancy geometry so object
floats at mid-point of sphere -->
<mass>20</mass>
<!-- Mark only - based on cylinder -->
<inertia>
<ixx>1.0</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>1.0</iyy>
<iyz>0</iyz>
<izz>0.1</izz>
</inertia>
</inertial>
<collision name="crocodile_collision">
<pose>0 0 0.06 0 0 0</pose>
<geometry>
<box>
<size>0.80 0.40 0.15</size>
</box>
</geometry>
</collision>
<visual name="crocodile_visual">
<geometry>
<box>
<size>0.80 0.40 0.15</size>
</box>
</geometry>
</visual>
</link>
<plugin name="CrocodileBuoyancyPlugin" filename="libbuoyancy_gazebo_plugin.so">
<wave_model>ocean_waves</wave_model>
<fluid_density>1000</fluid_density>
<fluid_level>0.0</fluid_level>
<linear_drag>25.0</linear_drag>
<angular_drag>2.0</angular_drag>
<buoyancy name="buoyancy_sphere">
<link_name>link</link_name>
<pose>0 0 0.2 0 0 0</pose>
<geometry>
<sphere>
<radius>0.325</radius>
</sphere>
</geometry>
</buoyancy>
</plugin>
</model>
</sdf>


61 changes: 50 additions & 11 deletions vrx_ign/models/wam-v/model.sdf.erb
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ end

<!-- Base model-->
<include merge="true">
<uri>https://fuel.ignitionrobotics.org/1.0/openrobotics/models/wam-v</uri>
<uri>https://fuel.gazebosim.org/1.0/openrobotics/models/wam-v</uri>
</include>

<plugin
@@ -70,15 +70,54 @@ end
</plugin>

<plugin
filename="libSurface.so"
name="vrx::Surface">
<link_name>base_link</link_name>
<vehicle_length>4.9</vehicle_length>
<vehicle_width>2.4</vehicle_width>
<hull_radius>0.213</hull_radius>
<fluid_level>0</fluid_level>

<!-- Waves -->
filename="libSimpleBuoyancy.so"
name="vrx::SimpleBuoyancy">
<fluid_density>1000</fluid_density>
<fluid_level>0.0</fluid_level>
<linear_drag>20.0</linear_drag>
<angular_drag>2.0</angular_drag>
<!-- Left Hull -->
<buoyancy name="left_hull_mid">
<link_name>base_link</link_name>
<pose>0.6 1.03 0.2 0 1.57 0</pose>
<geometry>
<cylinder>
<length>2</length>
<radius>0.2</radius>
</cylinder>
</geometry>
</buoyancy>
<buoyancy name="left_hull_rear">
<link_name>base_link</link_name>
<pose>-1.4 1.03 0.2 0 1.57 0</pose>
<geometry>
<cylinder>
<length>2</length>
<radius>0.2</radius>
</cylinder>
</geometry>
</buoyancy>
<!-- Right Hull -->
<buoyancy name="right_hull_mid">
<link_name>base_link</link_name>
<pose>0.6 -1.03 0.2 0 1.57 0</pose>
<geometry>
<cylinder>
<length>2</length>
<radius>0.2</radius>
</cylinder>
</geometry>
</buoyancy>
<buoyancy name="right_hull_rear">
<link_name>base_link</link_name>
<pose>-1.4 -1.03 0.2 0 1.57 0</pose>
<geometry>
<cylinder>
<length>2</length>
<radius>0.2</radius>
</cylinder>
</geometry>
</buoyancy>
<wavefield>
<size><%= $wavefield_size%> <%= $wavefield_size%></size>
<cell_count><%= $wavefield_cell_count%> <%=$wavefield_cell_count%></cell_count>
@@ -87,7 +126,7 @@ end
<period>5.0</period>
<number>3</number>
<scale>1.1</scale>
<gain>0.5</gain>
<gain>0.3</gain>
<direction>1 0</direction>
<angle>0.4</angle>
<tau>2.0</tau>
Loading