mirror of
https://github.com/micro-ROS/micro-ROS-Agent.git
synced 2026-09-06 18:05:17 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f0af6b953 | ||
|
|
7372bbe5bd | ||
|
|
a88be1bbbb | ||
|
|
92b7343d1a | ||
|
|
e6b928b1e1 | ||
|
|
4c98e4f9f5 | ||
|
|
964b0aec1a | ||
|
|
03946126dd | ||
|
|
0142528a73 | ||
|
|
53ff7d409d | ||
|
|
9e9167b0d7 | ||
|
|
93aa9e6a73 | ||
|
|
e62154a1cf | ||
|
|
495733690c | ||
|
|
179ae80b94 | ||
|
|
5ad09cec70 | ||
|
|
dfd6966cd1 |
+10
-10
@@ -3,27 +3,27 @@ name: CI micro-ROS Agent
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'humble'
|
||||
- 'rolling'
|
||||
schedule:
|
||||
- cron: '33 6 * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
microros_agent_ci:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-20.04 ]
|
||||
ros_distribution: [ humble ]
|
||||
os: [ ubuntu-latest ]
|
||||
ros_distribution: [ rolling ]
|
||||
include:
|
||||
- docker_image: ubuntu:jammy
|
||||
ros_distribution: humble
|
||||
- docker_image: ubuntu:22.04
|
||||
ros_distribution: rolling
|
||||
container:
|
||||
image: ubuntu:jammy
|
||||
image: ubuntu:22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ros-tooling/setup-ros@0.3.2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ros-tooling/setup-ros@0.7.1
|
||||
with:
|
||||
use-ros2-testing: false
|
||||
required-ros-distributions: ${{ matrix.ros_distribution }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
run: |
|
||||
apt-get install ros-${{ matrix.ros_distribution }}-micro-ros-msgs
|
||||
apt-get install ros-${{ matrix.ros_distribution }}-rmw-fastrtps-cpp
|
||||
- uses : ros-tooling/action-ros-ci@0.2.5
|
||||
- uses : ros-tooling/action-ros-ci@0.3.6
|
||||
with:
|
||||
package-name: "micro_ros_agent"
|
||||
target-ros2-distro: ${{ matrix.ros_distribution }}
|
||||
|
||||
@@ -2,19 +2,25 @@
|
||||
Changelog for package micro-ros_agent
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
3.0.5 (2023-06-06)
|
||||
5.0.1 (2024-01-29)
|
||||
------------------
|
||||
* Fix thread include (`#216 <https://github.com/micro-ROS/micro-ROS-Agent/issues/216>`_) (`#218 <https://github.com/micro-ROS/micro-ROS-Agent/issues/218>`_)
|
||||
|
||||
3.0.4 (2022-09-28)
|
||||
5.0.0 (2023-06-06)
|
||||
------------------
|
||||
* Fix Datawriter destruction (`#169 <https://github.com/micro-ROS/micro-ROS-Agent/issues/169>`_)
|
||||
* Synchronise predicate (`#160 <https://github.com/micro-ROS/micro-ROS-Agent/issues/160>`_)
|
||||
* Add empty type key hash to GraphCache (`#189 <https://github.com/micro-ROS/micro-ROS-Agent/issues/189>`_)
|
||||
* Contributors: Antonio Cuadros
|
||||
|
||||
3.0.3 (2022-06-13)
|
||||
4.0.2 (2022-09-28)
|
||||
------------------
|
||||
* Fix memory leak in graph manager (`#147 <https://github.com/micro-ROS/micro-ROS-Agent/issues/147>`_)
|
||||
* Fix Datawriter destruction (`#169 <https://github.com/micro-ROS/micro-ROS-Agent/issues/169>`_) (`#170 <https://github.com/micro-ROS/micro-ROS-Agent/issues/170>`_)
|
||||
* Synchronise predicate (`#160 <https://github.com/micro-ROS/micro-ROS-Agent/issues/160>`_) (`#165 <https://github.com/micro-ROS/micro-ROS-Agent/issues/165>`_)
|
||||
|
||||
3.0.2 (2022-05-25)
|
||||
4.0.1 (2022-06-13)
|
||||
------------------
|
||||
* Fix memory leak in graph manager (`#147 <https://github.com/micro-ROS/micro-ROS-Agent/issues/147>`_) (`#148 <https://github.com/micro-ROS/micro-ROS-Agent/issues/148>`_)
|
||||
|
||||
4.0.0 (2022-05-25)
|
||||
------------------
|
||||
|
||||
3.0.1 (2022-03-25)
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <map>
|
||||
#include <thread>
|
||||
|
||||
namespace uros {
|
||||
namespace agent {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="3">
|
||||
<name>micro_ros_agent</name>
|
||||
<version>3.0.5</version>
|
||||
<version>5.0.1</version>
|
||||
<description>micro-ROS Agent package</description>
|
||||
<maintainer email="pablogarrido@eprosima.com">Pablo Garrido</maintainer>
|
||||
<maintainer email="antoniocuadros@eprosima.com">Antonio Cuadros</maintainer>
|
||||
|
||||
@@ -374,8 +374,8 @@ void GraphManager::add_datawriter(
|
||||
"rmw_fastrtps_cpp", participant_guid);
|
||||
const rmw_qos_profile_t qos_profile = fastdds_qos_to_rmw_qos(writer_qos);
|
||||
|
||||
graphCache_.add_entity(datawriter_gid, topic_name,
|
||||
type_name, participant_gid, qos_profile, false);
|
||||
graphCache_.add_entity(datawriter_gid, topic_name, type_name,
|
||||
rosidl_get_zero_initialized_type_hash(), participant_gid, qos_profile, false);
|
||||
}
|
||||
|
||||
void GraphManager::remove_datawriter(
|
||||
@@ -411,8 +411,13 @@ void GraphManager::add_datareader(
|
||||
"rmw_fastrtps_cpp", participant_guid);
|
||||
const rmw_qos_profile_t qos_profile = fastdds_qos_to_rmw_qos(reader_qos);
|
||||
|
||||
graphCache_.add_entity(datareader_gid, topic_name,
|
||||
type_name, participant_gid, qos_profile, true);
|
||||
// TODO(acuadros95): Use typesupport to calculate type hash on micro-ROS and save and get it from reader_qos.user_data.
|
||||
// Related PRs:
|
||||
// https://github.com/ros2/rmw_dds_common/pull/70
|
||||
// https://github.com/ros2/rmw_fastrtps/pull/671
|
||||
// https://github.com/ros2/rmw_fastrtps/pull/680
|
||||
graphCache_.add_entity(datareader_gid, topic_name, type_name,
|
||||
rosidl_get_zero_initialized_type_hash(), participant_gid, qos_profile, true);
|
||||
}
|
||||
|
||||
void GraphManager::remove_datareader(
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<profiles xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles" >
|
||||
<transport_descriptors>
|
||||
<transport_descriptor>
|
||||
<transport_id>CustomUdpTransport</transport_id>
|
||||
<type>UDPv4</type>
|
||||
</transport_descriptor>
|
||||
</transport_descriptors>
|
||||
|
||||
<participant profile_name="participant_profile" is_default_profile="true">
|
||||
<rtps>
|
||||
<userTransports>
|
||||
<transport_id>CustomUdpTransport</transport_id>
|
||||
</userTransports>
|
||||
|
||||
<useBuiltinTransports>false</useBuiltinTransports>
|
||||
</rtps>
|
||||
</participant>
|
||||
</profiles>
|
||||
@@ -24,4 +24,4 @@ if [ -n "$p2p_port" ]; then
|
||||
set -- --p2p "$p2p_port" "$@"
|
||||
fi
|
||||
|
||||
exec "$SNAP/opt/ros/snap/lib/micro_ros_agent/micro_ros_agent" "$transport" "$@"
|
||||
exec "$SNAP/lib/micro_ros_agent/micro_ros_agent" "$transport" "$@"
|
||||
|
||||
+35
-35
@@ -71,6 +71,16 @@ description: |
|
||||
|
||||
$ snap set micro-ros-agent device="device path"
|
||||
|
||||
If connecting the micro-ROS Agent using an IP based connection mode,
|
||||
that is, `udp4`, `udp6`, `tcp4` or `tcp6`, care must be taken to
|
||||
connect first the `micro-ros-agent-shm-netplug` plug.
|
||||
This is due to the fact that ROS 2 Foxy is using Fast-DDS as the
|
||||
default DDS middleware, and Fast-DDS comes with *shared memory transport*.
|
||||
Thus, this plugin must be enabled, in order to gain access to the
|
||||
`/dev/shm` folder from the snap image, prior to running it:
|
||||
|
||||
$ sudo snap connect micro-ros-agent:micro-ros-agent-shm-netplug
|
||||
|
||||
When using the snap with a serial device, some steps need to be taken
|
||||
in order to establish a successful connection:
|
||||
|
||||
@@ -110,59 +120,49 @@ architectures:
|
||||
- build-on: armhf
|
||||
- build-on: ppc64el
|
||||
|
||||
package-repositories:
|
||||
- components: [main]
|
||||
formats: [deb]
|
||||
key-id: C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
|
||||
key-server: keyserver.ubuntu.com
|
||||
suites: [focal]
|
||||
type: apt
|
||||
url: http://repo.ros2.org/ubuntu/main
|
||||
|
||||
parts:
|
||||
ros2-foxy-extension:
|
||||
build-packages: [ros-foxy-ros-core]
|
||||
override-build: install -D -m 0755 launch ${SNAPCRAFT_PART_INSTALL}/snap/command-chain/ros2-launch
|
||||
plugin: nil
|
||||
source: $SNAPCRAFT_EXTENSIONS_DIR/ros2
|
||||
|
||||
uros-agent:
|
||||
plugin: colcon
|
||||
source: .
|
||||
colcon-cmake-args:
|
||||
- -DMICROROSAGENT_SUPERBUILD=ON
|
||||
- --cmake-force-configure
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
|
||||
version="$(git describe --always --tags| sed -e 's/^v//;s/-/+git/;y/-/./')"
|
||||
[ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
|
||||
snapcraftctl set-version "$version"
|
||||
snapcraftctl set-grade "$grade"
|
||||
|
||||
override-build: |
|
||||
set +u
|
||||
git clone https://github.com/eProsima/Micro-XRCE-DDS-Agent.git -b $ROS_DISTRO
|
||||
git clone https://github.com/eProsima/Micro-CDR.git -b $ROS_DISTRO
|
||||
git clone https://github.com/micro-ROS/micro_ros_msgs.git -b $ROS_DISTRO
|
||||
git clone https://github.com/micro-ROS/rosidl_typesupport_microxrcedds.git -b $ROS_DISTRO
|
||||
git clone https://github.com/micro-ROS/rmw-microxrcedds.git -b $ROS_DISTRO
|
||||
git clone https://github.com/micro-ROS/micro-ROS-Agent.git -b $ROS_DISTRO
|
||||
. /opt/ros/$ROS_DISTRO/setup.sh
|
||||
colcon build --merge-install --install-base $SNAPCRAFT_PRIME --cmake-args "-DUAGENT_BUILD_EXECUTABLE=OFF -DUAGENT_USE_SYSTEM_FASTDDS=ON" --packages-up-to micro_ros_agent
|
||||
set -u
|
||||
build-packages: [make, gcc, g++]
|
||||
stage-packages: [ros-foxy-ros2launch]
|
||||
build-environment:
|
||||
- ROS_VERSION: '2'
|
||||
- ROS_DISTRO: foxy
|
||||
|
||||
runner:
|
||||
plugin: dump
|
||||
source: snap/local/
|
||||
organize:
|
||||
'micro-ros-agent-daemon': usr/bin/
|
||||
'fastdds_no_shared_memory.xml': usr/share/
|
||||
'*': usr/bin/
|
||||
|
||||
plugs:
|
||||
micro-ros-agent-shm-netplug:
|
||||
interface: system-files
|
||||
allow-auto-connection: true
|
||||
write:
|
||||
- /dev/shm
|
||||
|
||||
apps:
|
||||
micro-ros-agent:
|
||||
command: opt/ros/snap/lib/micro_ros_agent/micro_ros_agent
|
||||
command: lib/micro_ros_agent/micro_ros_agent
|
||||
environment:
|
||||
FASTRTPS_DEFAULT_PROFILES_FILE: ${SNAP}/usr/share/fastdds_no_shared_memory.xml
|
||||
plugs: [network, network-bind, serial-port]
|
||||
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/lib"
|
||||
plugs: [network, network-bind, serial-port, micro-ros-agent-shm-netplug]
|
||||
extensions: [ros2-foxy]
|
||||
|
||||
daemon:
|
||||
command: usr/bin/micro-ros-agent-daemon
|
||||
environment:
|
||||
FASTRTPS_DEFAULT_PROFILES_FILE: ${SNAP}/usr/share/fastdds_no_shared_memory.xml
|
||||
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/lib"
|
||||
daemon: simple
|
||||
plugs: [network, network-bind, serial-port]
|
||||
plugs: [network, network-bind, serial-port, micro-ros-agent-shm-netplug]
|
||||
|
||||
Reference in New Issue
Block a user