Skip to content

Commit

Permalink
[noetic] 🏁 Dome EOL (#197)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Dec 29, 2021
1 parent 7e49c03 commit e0baa75
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 77 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,7 @@ export ROS_PYTHON_VERSION=3
apt update -qq
apt install -qq -y lsb-release wget curl build-essential

# Citadel gets Ignition with rosdep
if [ "$IGNITION_VERSION" != "citadel" ]; then
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-prerelease `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-prerelease.list
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-nightly `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-nightly.list
wget https://packages.osrfoundation.org/gazebo.key -O - | apt-key add -

if [ "$IGNITION_VERSION" == "dome" ]; then
IGN_DEPS="libignition-msgs6-dev libignition-transport9-dev libignition-gazebo4-dev"
fi

if [ "$IGNITION_VERSION" == "edifice" ]; then
IGN_DEPS="libignition-msgs7-dev libignition-transport10-dev libignition-gazebo5-dev"
fi

if [ "$IGNITION_VERSION" == "fortress" ]; then
IGN_DEPS="libignition-msgs8-dev libignition-transport11-dev libignition-gazebo6-dev"
fi
fi
# Citadel, Edifice and Fortress get Ignition with rosdep for Focal

# Dependencies.
echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/noetic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
- docker-image: "ubuntu:20.04"
ignition-version: "citadel"
ros-distro: "noetic"
- docker-image: "ubuntu:20.04"
ignition-version: "dome"
ros-distro: "noetic"
- docker-image: "ubuntu:20.04"
ignition-version: "edifice"
ros-distro: "noetic"
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
ROS version | Ignition version | Branch | Binaries hosted at
-- | -- | -- | --
Melodic | Citadel | [melodic](https://github.com/osrf/ros_ign/tree/melodic) | only from source
Melodic | Dome | [melodic](https://github.com/osrf/ros_ign/tree/melodic) | https://packages.osrfoundation.org
Melodic | Fortress | [melodic](https://github.com/osrf/ros_ign/tree/melodic) | only from source
Noetic | Citadel | [noetic](https://github.com/osrf/ros_ign/tree/noetic) | https://packages.ros.org
Noetic | Dome | [noetic](https://github.com/osrf/ros_ign/tree/noetic) | only from source
Noetic | Edifice | [noetic](https://github.com/osrf/ros_ign/tree/noetic) | only from source
Noetic | Fortress (not released) | [noetic](https://github.com/osrf/ros_ign/tree/noetic) | only from source
Foxy | Citadel | [foxy](https://github.com/osrf/ros_ign/tree/foxy) | https://packages.ros.org
Foxy | Dome | [foxy](https://github.com/osrf/ros_ign/tree/foxy) | only from source
Foxy | Edifice | [foxy](https://github.com/osrf/ros_ign/tree/foxy) | only from source
Galactic | Edifice | [ros2](https://github.com/osrf/ros_ign/tree/ros2) | https://packages.ros.org
Rolling | Edifice | [ros2](https://github.com/osrf/ros_ign/tree/ros2) | https://packages.ros.org
Expand Down Expand Up @@ -74,7 +72,7 @@ More ROS dependencies will be installed below.

#### Ignition

Install either [Citadel, Dome, Edifice or Fortress](https://ignitionrobotics.org/docs).
Install either [Citadel, Edifice or Fortress](https://ignitionrobotics.org/docs).

Set the `IGNITION_VERSION` environment variable to the Ignition version you'd
like to compile against. For example:
Expand Down
10 changes: 1 addition & 9 deletions ros_ign_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ elseif ("$ENV{IGNITION_VERSION}" STREQUAL "edifice")
set(IGN_MSGS_VER ${ignition-msgs7_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Edifice")
# Dome
elseif ("$ENV{IGNITION_VERSION}" STREQUAL "dome")
find_package(ignition-transport9 REQUIRED)
set(IGN_TRANSPORT_VER ${ignition-transport9_VERSION_MAJOR})

find_package(ignition-msgs6 REQUIRED)
set(IGN_MSGS_VER ${ignition-msgs6_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Dome")
# Default to Citadel
else()
find_package(ignition-transport8 REQUIRED)
Expand All @@ -56,6 +47,7 @@ else()
set(IGN_MSGS_VER ${ignition-msgs5_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Citadel")
add_definitions(-DIGNITION_CITADEL)
endif()

catkin_package()
Expand Down
3 changes: 0 additions & 3 deletions ros_ign_bridge/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
<!-- Edifice -->
<depend condition="$IGNITION_VERSION == edifice">ignition-msgs7</depend>
<depend condition="$IGNITION_VERSION == edifice">ignition-transport10</depend>
<!-- Dome -->
<depend condition="$IGNITION_VERSION == dome">ignition-msgs6</depend>
<depend condition="$IGNITION_VERSION == dome">ignition-transport9</depend>
<!-- Citadel (default) -->
<depend condition="$IGNITION_VERSION == citadel">ignition-msgs5</depend>
<depend condition="$IGNITION_VERSION == citadel">ignition-transport8</depend>
Expand Down
14 changes: 7 additions & 7 deletions ros_ign_bridge/src/convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ convert_ros_to_ign(
ign_msg.mutable_info()->set_height(
ros_msg.info.height);

convert_ros_to_ign(ros_msg.info.origin,
convert_ros_to_ign(ros_msg.info.origin,
(*ign_msg.mutable_info()->mutable_origin()));

ign_msg.set_data(&ros_msg.data[0], ros_msg.data.size());
Expand Down Expand Up @@ -1012,17 +1012,17 @@ convert_ros_to_ign(
{
auto newJoint = ign_msg.add_joint();
newJoint->set_name(ros_msg.name[i]);

if (ros_msg.position.size() > i)
newJoint->mutable_axis1()->set_position(ros_msg.position[i]);
else
newJoint->mutable_axis1()->set_position(nan);

if (ros_msg.velocity.size() > i)
newJoint->mutable_axis1()->set_velocity(ros_msg.velocity[i]);
else
newJoint->mutable_axis1()->set_velocity(nan);

if (ros_msg.effort.size() > i)
newJoint->mutable_axis1()->set_force(ros_msg.effort[i]);
else
Expand Down Expand Up @@ -1353,7 +1353,7 @@ convert_ros_to_ign(
{
convert_ros_to_ign(ros_msg.header, (*ign_msg.mutable_header()));

// Note, in ROS's Marker message ADD and MODIFY both map to a value of "0",
// Note, in ROS's Marker message ADD and MODIFY both map to a value of "0",
// so that case is not needed here.
switch(ros_msg.action)
{
Expand All @@ -1379,7 +1379,7 @@ convert_ros_to_ign(
// Type
switch(ros_msg.type)
{
#ifdef IGNITION_DOME
#ifndef IGNITION_CITADEL
case visualization_msgs::Marker::ARROW:
ign_msg.set_type(ignition::msgs::Marker::ARROW);
break;
Expand Down Expand Up @@ -1485,7 +1485,7 @@ convert_ign_to_ros(

switch(ign_msg.type())
{
#ifdef IGNITION_DOME
#ifndef IGNITION_CITADEL
case ignition::msgs::Marker::ARROW:
ros_msg.type = visualization_msgs::Marker::TRIANGLE_LIST;
break;
Expand Down
12 changes: 0 additions & 12 deletions ros_ign_gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ elseif ("$ENV{IGNITION_VERSION}" STREQUAL "edifice")
set(IGN_GAZEBO_VER ${ignition-gazebo5_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Edifice")
# Dome
elseif ("$ENV{IGNITION_VERSION}" STREQUAL "dome")
find_package(ignition-transport9 REQUIRED)
set(IGN_TRANSPORT_VER ${ignition-transport9_VERSION_MAJOR})

find_package(ignition-msgs6 REQUIRED)
set(IGN_MSGS_VER ${ignition-msgs6_VERSION_MAJOR})

find_package(ignition-gazebo4 REQUIRED)
set(IGN_GAZEBO_VER ${ignition-gazebo4_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Dome")
# Default to Citadel
else()
find_package(ignition-transport8 REQUIRED)
Expand Down
2 changes: 0 additions & 2 deletions ros_ign_gazebo/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<depend condition="$IGNITION_VERSION == fortress">ignition-gazebo6</depend>
<!-- Edifice -->
<depend condition="$IGNITION_VERSION == edifice">ignition-gazebo5</depend>
<!-- Dome -->
<depend condition="$IGNITION_VERSION == dome">ignition-gazebo4</depend>
<!-- Citadel (default) -->
<depend condition="$IGNITION_VERSION == citadel">ignition-gazebo3</depend>
<depend condition="$IGNITION_VERSION == ''">ignition-gazebo3</depend>
Expand Down
2 changes: 0 additions & 2 deletions ros_ign_gazebo_demos/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<exec_depend condition="$IGNITION_VERSION == fortress">ignition-gazebo6</exec_depend>
<!-- Edifice -->
<exec_depend condition="$IGNITION_VERSION == edifice">ignition-gazebo5</exec_depend>
<!-- Dome -->
<exec_depend condition="$IGNITION_VERSION == dome">ignition-gazebo4</exec_depend>
<!-- Citadel (default) -->
<exec_depend condition="$IGNITION_VERSION == citadel">ignition-gazebo3</exec_depend>
<exec_depend condition="$IGNITION_VERSION == ''">ignition-gazebo3</exec_depend>
Expand Down
9 changes: 0 additions & 9 deletions ros_ign_image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ elseif ("$ENV{IGNITION_VERSION}" STREQUAL "edifice")
set(IGN_MSGS_VER ${ignition-msgs7_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Edifice")
# Dome
elseif ("$ENV{IGNITION_VERSION}" STREQUAL "dome")
find_package(ignition-transport9 REQUIRED)
set(IGN_TRANSPORT_VER ${ignition-transport9_VERSION_MAJOR})

find_package(ignition-msgs6 REQUIRED)
set(IGN_MSGS_VER ${ignition-msgs6_VERSION_MAJOR})

message(STATUS "Compiling against Ignition Dome")
# Default to Citadel
else()
find_package(ignition-transport8 REQUIRED)
Expand Down
3 changes: 0 additions & 3 deletions ros_ign_image/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
<!-- Edifice -->
<depend condition="$IGNITION_VERSION == edifice">ignition-msgs7</depend>
<depend condition="$IGNITION_VERSION == edifice">ignition-transport10</depend>
<!-- Dome -->
<depend condition="$IGNITION_VERSION == dome">ignition-msgs6</depend>
<depend condition="$IGNITION_VERSION == dome">ignition-transport9</depend>
<!-- Citadel (default) -->
<depend condition="$IGNITION_VERSION == citadel">ignition-msgs5</depend>
<depend condition="$IGNITION_VERSION == citadel">ignition-transport8</depend>
Expand Down
4 changes: 0 additions & 4 deletions ros_ign_point_cloud/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<depend condition="$IGNITION_VERSION == edifice">ignition-gazebo5</depend>
<depend condition="$IGNITION_VERSION == edifice">ignition-rendering5</depend>
<depend condition="$IGNITION_VERSION == edifice">ignition-sensors5</depend>
<!-- Dome -->
<depend condition="$IGNITION_VERSION == dome">ignition-gazebo4</depend>
<depend condition="$IGNITION_VERSION == dome">ignition-rendering4</depend>
<depend condition="$IGNITION_VERSION == dome">ignition-sensors4</depend>
<!-- Citadel (default) -->
<depend condition="$IGNITION_VERSION == citadel">ignition-gazebo3</depend>
<depend condition="$IGNITION_VERSION == citadel">ignition-rendering3</depend>
Expand Down

0 comments on commit e0baa75

Please sign in to comment.