Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6b75cb3
fix travis badge
fmessmer Nov 17, 2022
a77773e
remove eol job
fmessmer Apr 29, 2023
af9c155
Merge pull request #300 from fmessmer/fix/ci
fmessmer Apr 29, 2023
d98ff0d
update EmergencyStopState Msg to include other states sent from PLC
omaria14 Oct 25, 2023
31c1cc1
Merge pull request #301 from omar-ihab-ali/update/emergency_stop_stat…
benmaidel Oct 30, 2023
d100cca
update changelogs
fmessmer Nov 6, 2023
0e0d7d8
0.7.9
fmessmer Nov 6, 2023
6303333
migrate ci to gha
fmessmer Feb 14, 2024
59b1ae4
Merge pull request #306 from fmessmer/ci/gha
fmessmer Feb 14, 2024
1bed69b
fixup README
fmessmer Feb 14, 2024
95c7a3d
fixup README
fmessmer Feb 14, 2024
ece5913
update changelogs
fmessmer Feb 20, 2024
23a226f
0.7.10
fmessmer Feb 20, 2024
5fc40dd
remove raw_description
fmessmer Mar 20, 2024
96bb56d
remove cob_description
fmessmer Apr 11, 2024
c4342a8
new default branches
fmessmer Apr 17, 2024
800c01c
Merge pull request #308 from fmessmer/noetic-devel
fmessmer Apr 17, 2024
2cdab4f
update changelogs
fmessmer Apr 18, 2024
dea8f6d
0.7.11
fmessmer Apr 18, 2024
28ab9bd
update changelog
fmessmer Apr 30, 2024
e040d45
0.8.11
fmessmer Apr 30, 2024
55e0c22
add dependabot for github-actions
ConstantConstantin Jun 20, 2024
921b340
Merge pull request #310 from ConstantConstantin/patch-1
fmessmer Jun 21, 2024
cf9207e
update changelogs
fmessmer Aug 5, 2024
8d491fc
0.8.12
fmessmer Aug 5, 2024
dc34021
add new maintainers
Deleh Nov 25, 2024
02d347b
Merge pull request #312 from Deleh/ros1/update_maintainers
Deleh Nov 25, 2024
7a82d29
ros2
majdkhalife Mar 12, 2025
194059f
Ros2 humble cob common package conversion
majdkhalife May 20, 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
14 changes: 14 additions & 0 deletions .ci.xacro_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
status=0
# Only set --inorder if running on older ROS 1 distros; for ROS 2 (Humble) we don't need it.
if [ -n "$ROS_DISTRO" ] && { [ "$ROS_DISTRO" = "indigo" ] || [ "$ROS_DISTRO" = "jade" ] || [ "$ROS_DISTRO" = "kinetic" ]; }; then
xacro_args='--inorder'
else
xacro_args=''
fi

for x in $(find "$TARGET_REPO_PATH" -name '*.xacro' | sort); do
echo "Testing $x"
xacro $xacro_args "$x" > /dev/null || status=1
done
exit $status
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: GHA CI

on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0" # every Sunday at midnight
workflow_dispatch:

jobs:
industrial_ci:
name: GHA CI
runs-on: ubuntu-latest
timeout-minutes: 60

env:
ADDITIONAL_DEBS: 'apt-utils dialog git'
AFTER_SCRIPT: 'rosenv sh .ci.xacro_test.sh'
CATKIN_LINT: pedantic
CATKIN_LINT_ARGS: '--ignore description_boilerplate'
CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
PYLINT_ARGS: '--output-format=parseable --errors-only'
PYLINT_CHECK: true
ROS_REPO: main

strategy:
matrix:
include:
- { ROS_DISTRO: noetic }

steps:
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
ssh-known-hosts: ''

- uses: ros-industrial/industrial_ci@master
with:
config: ${{toJSON(matrix)}}
8 changes: 0 additions & 8 deletions .travis.xacro_test.sh

This file was deleted.

26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

23 changes: 2 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
cob_common
===========

## ROS Distro Support
## GitHub Actions - Continuous Integration

| | Indigo | Jade | Kinetic | Melodic |
|:-------:|:------:|:----:|:-------:|:-------:|
| Branch | [`indigo_dev`](https://github.com/ipa320/cob_common/tree/indigo_dev) | [`indigo_dev`](https://github.com/ipa320/cob_common/tree/indigo_dev) | [`kinetic_dev`](https://github.com/ipa320/cob_common/tree/kinetic_dev) | [`kinetic_dev`](https://github.com/ipa320/cob_common/tree/kinetic_dev) |
| Status | supported | not supported | supported | supported |
| Version | [version](http://repositories.ros.org/status_page/ros_indigo_default.html?q=cob_common) | [version](http://repositories.ros.org/status_page/ros_jade_default.html?q=cob_common) | [version](http://repositories.ros.org/status_page/ros_kinetic_default.html?q=cob_common) | [version](http://repositories.ros.org/status_page/ros_melodic_default.html?q=cob_common) |

## Travis - Continuous Integration

Status: [![Build Status](https://travis-ci.com/ipa320/cob_common.svg?branch=kinetic_dev)](https://travis-ci.com/ipa320/cob_common)

## ROS Buildfarm

| | Indigo Source | Indigo Debian | Jade Source | Jade Debian | Kinetic Source | Kinetic Debian | Melodic Source | Melodic Debian |
|:-------:|:-------------:|:-------------:|:-----------:|:-----------:|:--------------:|:--------------:|:--------------:|:--------------:|
| cob_common | [![not released](http://build.ros.org/buildStatus/icon?job=Isrc_uT__cob_common__ubuntu_trusty__source)](http://build.ros.org/view/Isrc_uT/job/Isrc_uT__cob_common__ubuntu_trusty__source/) | [![not released](http://build.ros.org/buildStatus/icon?job=Ibin_uT64__cob_common__ubuntu_trusty_amd64__binary)](http://build.ros.org/view/Ibin_uT64/job/Ibin_uT64__cob_common__ubuntu_trusty_amd64__binary/) | [![not released](http://build.ros.org/buildStatus/icon?job=Jsrc_uT__cob_common__ubuntu_trusty__source)](http://build.ros.org/view/Jsrc_uT/job/Jsrc_uT__cob_common__ubuntu_trusty__source/) | [![not released](http://build.ros.org/buildStatus/icon?job=Jbin_uT64__cob_common__ubuntu_trusty_amd64__binary)](http://build.ros.org/view/Jbin_uT64/job/Jbin_uT64__cob_common__ubuntu_trusty_amd64__binary/) | [![not released](http://build.ros.org/buildStatus/icon?job=Ksrc_uX__cob_common__ubuntu_xenial__source)](http://build.ros.org/view/Ksrc_uX/job/Ksrc_uX__cob_common__ubuntu_xenial__source/) | [![not released](http://build.ros.org/buildStatus/icon?job=Mbin_uB64__cob_common__ubuntu_xenial_amd64__binary)](http://build.ros.org/view/Mbin_uB64/job/Mbin_uB64__cob_common__ubuntu_xenial_amd64__binary/) | [![not released](http://build.ros.org/buildStatus/icon?job=Msrc_uB__cob_common__ubuntu_bionic__source)](http://build.ros.org/view/Msrc_uB/job/Msrc_uB__cob_common__ubuntu_bionic__source/) | [![not released](http://build.ros.org/buildStatus/icon?job=Mbin_uB64__cob_common__ubuntu_bionic_amd64__binary)](http://build.ros.org/view/Mbin_uB64/job/Mbin_uB64__cob_common__ubuntu_bionic_amd64__binary/) |


This is a repository for Care-O-bot URDF macros and common message/service descriptions.

Installation instructions and tutorials can be found at http://www.care-o-bot.org.
CI-Status ```noetic-devel```: [![GHA CI](https://github.com/4am-robotics/cob_common/actions/workflows/main.yml/badge.svg?branch=noetic-devel)](https://github.com/4am-robotics/cob_common/actions/workflows/main.yml?query=branch%3Anoetic-devel)
122 changes: 122 additions & 0 deletions all_changes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
diff --git a/.ci.xacro_test.sh b/.ci.xacro_test.sh
index d53f97b..a80e8a6 100644
--- a/.ci.xacro_test.sh
+++ b/.ci.xacro_test.sh
@@ -1,7 +1,13 @@
#!/bin/sh
status=0
-[ "$ROS_DISTRO" \< "melodic" ] && xacro_args='--inorder'
-for x in $(find "$TARGET_REPO_PATH" -name '*.xacro'|sort); do
+# Only set --inorder if running on older ROS 1 distros; for ROS 2 (Humble) we don't need it.
+if [ -n "$ROS_DISTRO" ] && { [ "$ROS_DISTRO" = "indigo" ] || [ "$ROS_DISTRO" = "jade" ] || [ "$ROS_DISTRO" = "kinetic" ]; }; then
+ xacro_args='--inorder'
+else
+ xacro_args=''
+fi
+
+for x in $(find "$TARGET_REPO_PATH" -name '*.xacro' | sort); do
echo "Testing $x"
xacro $xacro_args "$x" > /dev/null || status=1
done
diff --git a/cob_actions/package.xml b/cob_actions/package.xml
index 47261e4..be05704 100644
--- a/cob_actions/package.xml
+++ b/cob_actions/package.xml
@@ -16,4 +16,5 @@
<depend>action_msgs</depend>

<exec_depend>rosidl_default_runtime</exec_depend>
+ <member_of_group>rosidl_interface_packages</member_of_group>
</package>
diff --git a/cob_common/CMakeLists.txt b/cob_common/CMakeLists.txt
index edffff6..402eafb 100644
--- a/cob_common/CMakeLists.txt
+++ b/cob_common/CMakeLists.txt
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.8)
project(cob_common)

+# Make the ament_metapackage() command available.
find_package(ament_cmake REQUIRED)
-ament_metapackage()
+
+ament_package()
diff --git a/cob_common/package.xml b/cob_common/package.xml
index 9999397..63bbd3c 100644
--- a/cob_common/package.xml
+++ b/cob_common/package.xml
@@ -17,8 +17,6 @@
<exec_depend>cob_actions</exec_depend>
<exec_depend>cob_msgs</exec_depend>
<exec_depend>cob_srvs</exec_depend>
-
- <export>
- <metapackage/>
- </export>
+ <member_of_group>rosidl_interface_packages</member_of_group>
+
</package>
diff --git a/cob_msgs/msg/AccessPoint.msg b/cob_msgs/msg/AccessPoint.msg
index da7d9bd..84c5de9 100644
--- a/cob_msgs/msg/AccessPoint.msg
+++ b/cob_msgs/msg/AccessPoint.msg
@@ -1,5 +1,5 @@
# This message communicates the state of the PR2's wifi access point.
-Header header
+std_msgs/Header header
string essid
string macaddr
int32 signal
diff --git a/cob_msgs/msg/PowerState.msg b/cob_msgs/msg/PowerState.msg
index 47cf00d..d15d711 100644
--- a/cob_msgs/msg/PowerState.msg
+++ b/cob_msgs/msg/PowerState.msg
@@ -1,5 +1,5 @@
# This message communicates the state of the power system.
-Header header
+std_msgs/Header header
float64 voltage # [V]
float64 current # [A]
float64 power_consumption # [W] can only be calculated if not charging
diff --git a/cob_msgs/msg/SafetyControllerState.msg b/cob_msgs/msg/SafetyControllerState.msg
index 04a8e81..12b8d97 100644
--- a/cob_msgs/msg/SafetyControllerState.msg
+++ b/cob_msgs/msg/SafetyControllerState.msg
@@ -1,4 +1,4 @@
-Header header
+std_msgs/Header header
bool has_wireless_emstop
bool has_fall_sensors
bool has_magnetic_safety_switch
diff --git a/cob_msgs/msg/SiteSurvey.msg b/cob_msgs/msg/SiteSurvey.msg
index fadf87b..5d57c98 100644
--- a/cob_msgs/msg/SiteSurvey.msg
+++ b/cob_msgs/msg/SiteSurvey.msg
@@ -1,2 +1,2 @@
-Header header
+std_msgs/Header header
Network[] networks
diff --git a/cob_msgs/package.xml b/cob_msgs/package.xml
index 0575133..34a48cd 100644
--- a/cob_msgs/package.xml
+++ b/cob_msgs/package.xml
@@ -19,4 +19,5 @@
<depend>std_msgs</depend>

<exec_depend>rosidl_default_runtime</exec_depend>
+ <member_of_group>rosidl_interface_packages</member_of_group>
</package>
diff --git a/cob_srvs/package.xml b/cob_srvs/package.xml
index a51c8a3..24be9a6 100644
--- a/cob_srvs/package.xml
+++ b/cob_srvs/package.xml
@@ -13,8 +13,7 @@

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>
-
<depend>geometry_msgs</depend>
-
<exec_depend>rosidl_default_runtime</exec_depend>
+ <member_of_group>rosidl_interface_packages</member_of_group>
</package>
18 changes: 18 additions & 0 deletions cob_actions/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
Changelog for package cob_actions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.8.12 (2024-08-05)
-------------------

0.8.11 (2024-04-30)
-------------------
* 0.7.11
* update changelogs
* Contributors: fmessmer

0.7.11 (2024-04-18)
-------------------

0.7.10 (2024-02-20)
-------------------

0.7.9 (2023-11-06)
------------------

0.7.8 (2022-07-29)
------------------

Expand Down
31 changes: 16 additions & 15 deletions cob_actions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
cmake_minimum_required(VERSION 3.0.2)
cmake_minimum_required(VERSION 3.8)
project(cob_actions)

find_package(catkin REQUIRED COMPONENTS actionlib_msgs geometry_msgs message_generation)
# Find dependencies
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(action_msgs REQUIRED) # ROS 2 uses built-in action types

add_action_files(FILES
Dock.action
SetBool.action
SetFloat.action
SetInt.action
SetString.action
# Generate action interfaces.
# Make sure your action files are in the "action" directory.
rosidl_generate_interfaces(${PROJECT_NAME}
"action/Dock.action"
"action/SetBool.action"
"action/SetFloat.action"
"action/SetInt.action"
"action/SetString.action"
DEPENDENCIES geometry_msgs action_msgs
)

generate_messages(
DEPENDENCIES actionlib_msgs geometry_msgs
)

catkin_package(
CATKIN_DEPENDS actionlib_msgs geometry_msgs message_runtime
)
ament_package()
29 changes: 14 additions & 15 deletions cob_actions/package.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<package format="2">
<?xml version="1.0"?>
<package format="3">
<name>cob_actions</name>
<version>0.7.8</version>
<description>This Package contains Care-O-bot specific action definitions.</description>

<license>Apache 2.0</license>

<version>0.8.12</version>
<description>This package contains Care-O-bot specific action definitions.</description>
<license>Apache-2.0</license>
<url type="website">http://ros.org/wiki/cob_actions</url>
<!-- <url type="bugtracker"></url> -->

<maintainer email="[email protected]">Benjamin Maidel</maintainer>
<maintainer email="[email protected]">Denis Lehmann</maintainer>
<maintainer email="[email protected]">Felix Messmer</maintainer>
<author email="[email protected]">Felix Messmer</author>

<buildtool_depend>catkin</buildtool_depend>

<build_depend>message_generation</build_depend>
<exec_depend>message_runtime</exec_depend>
<depend>actionlib_msgs</depend>
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>geometry_msgs</depend>

<depend>action_msgs</depend>

<exec_depend>rosidl_default_runtime</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group>
</package>
27 changes: 27 additions & 0 deletions cob_common/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
Changelog for package cob_common
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.8.12 (2024-08-05)
-------------------

0.8.11 (2024-04-30)
-------------------
* 0.7.11
* update changelogs
* Merge pull request `#308 <https://github.com/4am-robotics/cob_common/issues/308>`_ from fmessmer/noetic-devel
[ROS1] cob4 eol cleanup
* remove cob_description
* remove raw_description
* Contributors: Felix Messmer, fmessmer

0.7.11 (2024-04-18)
-------------------
* Merge pull request `#308 <https://github.com/4am-robotics/cob_common/issues/308>`_ from fmessmer/noetic-devel
[ROS1] cob4 eol cleanup
* remove cob_description
* remove raw_description
* Contributors: Felix Messmer, fmessmer

0.7.10 (2024-02-20)
-------------------

0.7.9 (2023-11-06)
------------------

0.7.8 (2022-07-29)
------------------

Expand Down
9 changes: 6 additions & 3 deletions cob_common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cmake_minimum_required(VERSION 3.0.2)
cmake_minimum_required(VERSION 3.8)
project(cob_common)
find_package(catkin REQUIRED)
catkin_metapackage()

# Make the ament_metapackage() command available.
find_package(ament_cmake REQUIRED)

ament_package()
Loading