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 | |
|---|---|---|---|
|
|
b89677ed96 | ||
|
|
6f096337e5 | ||
|
|
d2a7e319ca | ||
|
|
7369137252 | ||
|
|
6cce230857 | ||
|
|
256424b7ec | ||
|
|
e43cde14ae | ||
|
|
a8caaa1b72 | ||
|
|
ee955ed01e | ||
|
|
a313a088bd |
+29
-28
@@ -3,35 +3,36 @@ name: CI micro-ROS Agent
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'humble'
|
- '**'
|
||||||
schedule:
|
|
||||||
- cron: '33 6 * * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
microros_agent_ci:
|
microros_agent_ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
container: microros/base:galactic
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
steps:
|
||||||
os: [ ubuntu-20.04 ]
|
- uses: actions/checkout@v2
|
||||||
ros_distribution: [ humble ]
|
with:
|
||||||
include:
|
path: urosagent
|
||||||
- docker_image: ubuntu:jammy
|
|
||||||
ros_distribution: humble
|
- name: Download dependencies
|
||||||
container:
|
run: |
|
||||||
image: ubuntu:jammy
|
apt update
|
||||||
steps:
|
cd /uros_ws
|
||||||
- uses: actions/checkout@v2
|
. /opt/ros/$ROS_DISTRO/setup.sh
|
||||||
- uses: ros-tooling/setup-ros@0.3.2
|
. install/local_setup.sh
|
||||||
with:
|
rosdep update
|
||||||
use-ros2-testing: false
|
ros2 run micro_ros_setup create_agent_ws.sh
|
||||||
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
||||||
- name : Download and install dependencies
|
- name: Patch branch
|
||||||
run: |
|
run: |
|
||||||
apt-get install ros-${{ matrix.ros_distribution }}-micro-ros-msgs
|
rm -rf /uros_ws/src/uros/micro-ROS-Agent/*
|
||||||
apt-get install ros-${{ matrix.ros_distribution }}-rmw-fastrtps-cpp
|
cp -R urosagent/* /uros_ws/src/uros/micro-ROS-Agent/
|
||||||
- uses : ros-tooling/action-ros-ci@0.2.5
|
|
||||||
with:
|
- name: Build
|
||||||
package-name: "micro_ros_agent"
|
run: |
|
||||||
target-ros2-distro: ${{ matrix.ros_distribution }}
|
cd /uros_ws
|
||||||
|
. /opt/ros/$ROS_DISTRO/setup.sh
|
||||||
|
. install/local_setup.sh
|
||||||
|
ros2 run micro_ros_setup build_agent.sh
|
||||||
@@ -55,4 +55,3 @@ see the file [3rd-party-licenses.txt](3rd-party-licenses.txt).
|
|||||||
Please notice the following issues/limitations:
|
Please notice the following issues/limitations:
|
||||||
|
|
||||||
* There is an unknown issue when dealing with serial ports shared with the micro-ROS agent running inside a Docker. Sometimes it works with a remarkable packet loss.
|
* There is an unknown issue when dealing with serial ports shared with the micro-ROS agent running inside a Docker. Sometimes it works with a remarkable packet loss.
|
||||||
* There is an known issues with serial port communication on micro-ros-agent snap version. It is recommended to use the dockerized version or build it from source.
|
|
||||||
@@ -2,22 +2,7 @@
|
|||||||
Changelog for package micro-ros_agent
|
Changelog for package micro-ros_agent
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
3.0.2 (2022-05-25)
|
2.0.0 (2021-09-13)
|
||||||
------------------
|
|
||||||
|
|
||||||
3.0.1 (2022-03-25)
|
|
||||||
------------------
|
|
||||||
* Add services to graph manager (`#127 <https://github.com/micro-ROS/micro-ROS-Agent/issues/127>`_) (`#129 <https://github.com/micro-ROS/micro-ROS-Agent/issues/129>`_)
|
|
||||||
* Add used missing includes (`#116 <https://github.com/micro-ROS/micro-ROS-Agent/issues/116>`_) (`#124 <https://github.com/micro-ROS/micro-ROS-Agent/issues/124>`_)
|
|
||||||
* Add system logger flag (`#118 <https://github.com/micro-ROS/micro-ROS-Agent/issues/118>`_) (`#119 <https://github.com/micro-ROS/micro-ROS-Agent/issues/119>`_)
|
|
||||||
* Add condition variable include (`#113 <https://github.com/micro-ROS/micro-ROS-Agent/issues/113>`_) (`#114 <https://github.com/micro-ROS/micro-ROS-Agent/issues/114>`_)
|
|
||||||
* pass system name to xrceagent (`#110 <https://github.com/micro-ROS/micro-ROS-Agent/issues/110>`_) (`#112 <https://github.com/micro-ROS/micro-ROS-Agent/issues/112>`_)
|
|
||||||
* Fix memory leak in FastDDS datawriter (`#107 <https://github.com/micro-ROS/micro-ROS-Agent/issues/107>`_) (`#109 <https://github.com/micro-ROS/micro-ROS-Agent/issues/109>`_)
|
|
||||||
|
|
||||||
3.0.0 (2021-09-13)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
1.0.1 (2021-09-13)
|
|
||||||
------------------
|
------------------
|
||||||
* Remove XRCE dependency and add superbuild (`#97 <https://github.com/micro-ROS/micro-ROS-Agent/issues/97>`_)
|
* Remove XRCE dependency and add superbuild (`#97 <https://github.com/micro-ROS/micro-ROS-Agent/issues/97>`_)
|
||||||
* Fixed launch file by using a list for arguments. Ensures order of items is kept. (`#93 <https://github.com/micro-ROS/micro-ROS-Agent/issues/93>`_) (`#94 <https://github.com/micro-ROS/micro-ROS-Agent/issues/94>`_)
|
* Fixed launch file by using a list for arguments. Ensures order of items is kept. (`#93 <https://github.com/micro-ROS/micro-ROS-Agent/issues/93>`_) (`#94 <https://github.com/micro-ROS/micro-ROS-Agent/issues/94>`_)
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ option(UROSAGENT_GENERATE_PROFILE
|
|||||||
set(CMAKE_C_CLANG_TIDY clang-tidy -checks=*)
|
set(CMAKE_C_CLANG_TIDY clang-tidy -checks=*)
|
||||||
|
|
||||||
option(MICROROSAGENT_SUPERBUILD "Enable superbuild compilation." ON)
|
option(MICROROSAGENT_SUPERBUILD "Enable superbuild compilation." ON)
|
||||||
option(UAGENT_USE_SYSTEM_LOGGER "Force use of system installed spdlog logger on superbuild." OFF)
|
|
||||||
|
|
||||||
if(NOT MICROROSAGENT_SUPERBUILD)
|
if(NOT MICROROSAGENT_SUPERBUILD)
|
||||||
project(micro_ros_agent LANGUAGES CXX)
|
project(micro_ros_agent LANGUAGES CXX)
|
||||||
|
|||||||
@@ -42,10 +42,8 @@ if(NOT xrceagent_FOUND)
|
|||||||
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
|
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
|
||||||
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
|
||||||
-DCMAKE_PREFIX_PATH:PATH=<INSTALL_DIR>
|
-DCMAKE_PREFIX_PATH:PATH=<INSTALL_DIR>
|
||||||
-DCMAKE_SYSTEM_NAME:STRING=${CMAKE_SYSTEM_NAME}
|
|
||||||
-DUAGENT_USE_SYSTEM_FASTDDS:BOOL=ON
|
-DUAGENT_USE_SYSTEM_FASTDDS:BOOL=ON
|
||||||
-DUAGENT_USE_SYSTEM_FASTCDR:BOOL=ON
|
-DUAGENT_USE_SYSTEM_FASTCDR:BOOL=ON
|
||||||
-DUAGENT_USE_SYSTEM_LOGGER:BOOL=${UAGENT_USE_SYSTEM_LOGGER}
|
|
||||||
-DUAGENT_CED_PROFILE:BOOL=OFF
|
-DUAGENT_CED_PROFILE:BOOL=OFF
|
||||||
-DUAGENT_P2P_PROFILE:BOOL=OFF
|
-DUAGENT_P2P_PROFILE:BOOL=OFF
|
||||||
-DUAGENT_BUILD_EXECUTABLE:BOOL=OFF
|
-DUAGENT_BUILD_EXECUTABLE:BOOL=OFF
|
||||||
|
|||||||
@@ -20,10 +20,6 @@
|
|||||||
#include <uxr/agent/middleware/utils/Callbacks.hpp>
|
#include <uxr/agent/middleware/utils/Callbacks.hpp>
|
||||||
|
|
||||||
#include <agent/graph_manager/graph_manager.hpp>
|
#include <agent/graph_manager/graph_manager.hpp>
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
// TODO(jamoralp): class Documentation
|
// TODO(jamoralp): class Documentation
|
||||||
namespace uros {
|
namespace uros {
|
||||||
namespace agent {
|
namespace agent {
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#ifndef _UROS_AGENT_GRAPH_MANAGER_HPP
|
|
||||||
#define _UROS_AGENT_GRAPH_MANAGER_HPP
|
|
||||||
|
|
||||||
#include "fastrtps/Domain.h"
|
#include "fastrtps/Domain.h"
|
||||||
#include <fastrtps/TopicDataType.h>
|
#include <fastrtps/TopicDataType.h>
|
||||||
#include "fastrtps/attributes/ParticipantAttributes.h"
|
#include "fastrtps/attributes/ParticipantAttributes.h"
|
||||||
@@ -61,10 +58,8 @@
|
|||||||
#include <agent/graph_manager/graph_typesupport.hpp>
|
#include <agent/graph_manager/graph_typesupport.hpp>
|
||||||
#include <agent/utils/demangle.hpp>
|
#include <agent/utils/demangle.hpp>
|
||||||
|
|
||||||
#include <condition_variable>
|
#ifndef _UROS_AGENT_GRAPH_MANAGER_HPP
|
||||||
#include <string>
|
#define _UROS_AGENT_GRAPH_MANAGER_HPP
|
||||||
#include <memory>
|
|
||||||
#include <map>
|
|
||||||
|
|
||||||
namespace uros {
|
namespace uros {
|
||||||
namespace agent {
|
namespace agent {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||||
<package format="3">
|
<package format="3">
|
||||||
<name>micro_ros_agent</name>
|
<name>micro_ros_agent</name>
|
||||||
<version>3.0.2</version>
|
<version>2.0.0</version>
|
||||||
<description>micro-ROS Agent package</description>
|
<description>micro-ROS Agent package</description>
|
||||||
<maintainer email="pablogarrido@eprosima.com">Pablo Garrido</maintainer>
|
<maintainer email="pablogarrido@eprosima.com">Pablo Garrido</maintainer>
|
||||||
<maintainer email="antoniocuadros@eprosima.com">Antonio Cuadros</maintainer>
|
<maintainer email="antoniocuadros@eprosima.com">Antonio Cuadros</maintainer>
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include <agent/Agent.hpp>
|
#include <agent/Agent.hpp>
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
namespace uros {
|
namespace uros {
|
||||||
namespace agent {
|
namespace agent {
|
||||||
|
|
||||||
@@ -79,9 +76,14 @@ bool Agent::create(
|
|||||||
{
|
{
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
||||||
|
|
||||||
graph_manager_->add_datawriter(datawriter->guid(), participant, datawriter);
|
// TODO(jamoralp): Workaround for Fast-DDS bug #9977. Remove when fixed
|
||||||
|
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
||||||
|
datawriter->get_instance_handle();
|
||||||
|
const eprosima::fastrtps::rtps::GUID_t datawriter_guid =
|
||||||
|
iHandle2GUID(instance_handle);
|
||||||
|
graph_manager_->add_datawriter(datawriter_guid, participant, datawriter);
|
||||||
graph_manager_->associate_entity(
|
graph_manager_->associate_entity(
|
||||||
datawriter->guid(), participant, dds::xrce::OBJK_DATAWRITER);
|
datawriter_guid, participant, dds::xrce::OBJK_DATAWRITER);
|
||||||
});
|
});
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
xrce_dds_agent_instance_.add_middleware_callback(
|
||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
eprosima::uxr::Middleware::Kind::FASTDDS,
|
||||||
@@ -101,7 +103,12 @@ bool Agent::create(
|
|||||||
|
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
||||||
|
|
||||||
graph_manager_->remove_datawriter(datawriter->guid());
|
// TODO(jamoralp): Workaround for Fast-DDS bug #9977. Remove when fixed
|
||||||
|
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
||||||
|
datawriter->get_instance_handle();
|
||||||
|
const eprosima::fastrtps::rtps::GUID_t datawriter_guid =
|
||||||
|
eprosima::fastrtps::rtps::iHandle2GUID(instance_handle);
|
||||||
|
graph_manager_->remove_datawriter(datawriter_guid);
|
||||||
});
|
});
|
||||||
|
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
xrce_dds_agent_instance_.add_middleware_callback(
|
||||||
@@ -159,128 +166,6 @@ bool Agent::create(
|
|||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
eprosima::uxr::Middleware::Kind::FASTDDS,
|
||||||
eprosima::uxr::middleware::CallbackKind::DELETE_DATAREADER,
|
eprosima::uxr::middleware::CallbackKind::DELETE_DATAREADER,
|
||||||
std::move(on_delete_datareader));
|
std::move(on_delete_datareader));
|
||||||
|
|
||||||
/**
|
|
||||||
* Add CREATE_REQUESTER callback.
|
|
||||||
*/
|
|
||||||
std::function<void (
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant *,
|
|
||||||
const eprosima::fastdds::dds::DataWriter *,
|
|
||||||
const eprosima::fastdds::dds::DataReader *)> on_create_requester
|
|
||||||
([&](
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant* participant,
|
|
||||||
const eprosima::fastdds::dds::DataWriter* datawriter,
|
|
||||||
const eprosima::fastdds::dds::DataReader * datareader) -> void
|
|
||||||
{
|
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
|
||||||
|
|
||||||
graph_manager_->add_datawriter(datawriter->guid(), participant, datawriter);
|
|
||||||
graph_manager_->associate_entity(
|
|
||||||
datawriter->guid(), participant, dds::xrce::OBJK_DATAWRITER);
|
|
||||||
|
|
||||||
// TODO(pablogs): Workaround for Fast-DDS bug #9977. Remove when fixed
|
|
||||||
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
|
||||||
datareader->get_instance_handle();
|
|
||||||
const eprosima::fastrtps::rtps::GUID_t datareader_guid =
|
|
||||||
eprosima::fastrtps::rtps::iHandle2GUID(instance_handle);
|
|
||||||
graph_manager_->add_datareader(datareader_guid, participant, datareader);
|
|
||||||
graph_manager_->associate_entity(
|
|
||||||
datareader_guid, participant, dds::xrce::OBJK_DATAREADER);
|
|
||||||
});
|
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
|
||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
|
||||||
eprosima::uxr::middleware::CallbackKind::CREATE_REQUESTER,
|
|
||||||
std::move(on_create_requester));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add DELETE_REQUESTER callback.
|
|
||||||
*/
|
|
||||||
std::function<void (
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant *,
|
|
||||||
const eprosima::fastdds::dds::DataWriter *,
|
|
||||||
const eprosima::fastdds::dds::DataReader *)> on_delete_requester
|
|
||||||
([&](
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant* participant,
|
|
||||||
const eprosima::fastdds::dds::DataWriter* datawriter,
|
|
||||||
const eprosima::fastdds::dds::DataReader * datareader) -> void
|
|
||||||
{
|
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
|
||||||
|
|
||||||
graph_manager_->remove_datawriter(datawriter->guid());
|
|
||||||
|
|
||||||
// TODO(pablogs): Workaround for Fast-DDS bug #9977. Remove when fixed
|
|
||||||
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
|
||||||
datareader->get_instance_handle();
|
|
||||||
const eprosima::fastrtps::rtps::GUID_t datareader_guid =
|
|
||||||
eprosima::fastrtps::rtps::iHandle2GUID(instance_handle);
|
|
||||||
graph_manager_->remove_datareader(datareader_guid);
|
|
||||||
});
|
|
||||||
|
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
|
||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
|
||||||
eprosima::uxr::middleware::CallbackKind::DELETE_REQUESTER,
|
|
||||||
std::move(on_delete_requester));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add CREATE_REPLIER callback.
|
|
||||||
*/
|
|
||||||
std::function<void (
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant *,
|
|
||||||
const eprosima::fastdds::dds::DataWriter *,
|
|
||||||
const eprosima::fastdds::dds::DataReader *)> on_create_replier
|
|
||||||
([&](
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant* participant,
|
|
||||||
const eprosima::fastdds::dds::DataWriter* datawriter,
|
|
||||||
const eprosima::fastdds::dds::DataReader * datareader) -> void
|
|
||||||
{
|
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
|
||||||
|
|
||||||
graph_manager_->add_datawriter(datawriter->guid(), participant, datawriter);
|
|
||||||
graph_manager_->associate_entity(
|
|
||||||
datawriter->guid(), participant, dds::xrce::OBJK_DATAWRITER);
|
|
||||||
|
|
||||||
// TODO(pablogs): Workaround for Fast-DDS bug #9977. Remove when fixed
|
|
||||||
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
|
||||||
datareader->get_instance_handle();
|
|
||||||
const eprosima::fastrtps::rtps::GUID_t datareader_guid =
|
|
||||||
eprosima::fastrtps::rtps::iHandle2GUID(instance_handle);
|
|
||||||
graph_manager_->add_datareader(datareader_guid, participant, datareader);
|
|
||||||
graph_manager_->associate_entity(
|
|
||||||
datareader_guid, participant, dds::xrce::OBJK_DATAREADER);
|
|
||||||
});
|
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
|
||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
|
||||||
eprosima::uxr::middleware::CallbackKind::CREATE_REPLIER,
|
|
||||||
std::move(on_create_replier));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add DELETE_REPLIER callback.
|
|
||||||
*/
|
|
||||||
std::function<void (
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant *,
|
|
||||||
const eprosima::fastdds::dds::DataWriter *,
|
|
||||||
const eprosima::fastdds::dds::DataReader *)> on_delete_replier
|
|
||||||
([&](
|
|
||||||
const eprosima::fastdds::dds::DomainParticipant* participant,
|
|
||||||
const eprosima::fastdds::dds::DataWriter* datawriter,
|
|
||||||
const eprosima::fastdds::dds::DataReader * datareader) -> void
|
|
||||||
{
|
|
||||||
auto graph_manager_ = find_or_create_graph_manager(participant->get_domain_id());
|
|
||||||
|
|
||||||
graph_manager_->remove_datawriter(datawriter->guid());
|
|
||||||
|
|
||||||
// TODO(pablogs): Workaround for Fast-DDS bug #9977. Remove when fixed
|
|
||||||
const eprosima::fastrtps::rtps::InstanceHandle_t instance_handle =
|
|
||||||
datareader->get_instance_handle();
|
|
||||||
const eprosima::fastrtps::rtps::GUID_t datareader_guid =
|
|
||||||
eprosima::fastrtps::rtps::iHandle2GUID(instance_handle);
|
|
||||||
graph_manager_->remove_datareader(datareader_guid);
|
|
||||||
});
|
|
||||||
|
|
||||||
xrce_dds_agent_instance_.add_middleware_callback(
|
|
||||||
eprosima::uxr::Middleware::Kind::FASTDDS,
|
|
||||||
eprosima::uxr::middleware::CallbackKind::DELETE_REPLIER,
|
|
||||||
std::move(on_delete_replier));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
#include <agent/graph_manager/graph_manager.hpp>
|
#include <agent/graph_manager/graph_manager.hpp>
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
|
||||||
#include <utility>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace uros {
|
namespace uros {
|
||||||
namespace agent {
|
namespace agent {
|
||||||
namespace graph_manager {
|
namespace graph_manager {
|
||||||
@@ -101,7 +96,7 @@ GraphManager::GraphManager(eprosima::fastdds::dds::DomainId_t domain_id)
|
|||||||
|
|
||||||
eprosima::fastdds::dds::DataWriterQos ros_to_microros_datawriter_qos_ = datawriter_qos_;
|
eprosima::fastdds::dds::DataWriterQos ros_to_microros_datawriter_qos_ = datawriter_qos_;
|
||||||
ros_to_microros_datawriter_qos_.history().kind =
|
ros_to_microros_datawriter_qos_.history().kind =
|
||||||
eprosima::fastdds::dds::HistoryQosPolicyKind::KEEP_LAST_HISTORY_QOS;
|
eprosima::fastdds::dds::HistoryQosPolicyKind::KEEP_ALL_HISTORY_QOS;
|
||||||
ros_to_microros_graph_datawriter_.reset(
|
ros_to_microros_graph_datawriter_.reset(
|
||||||
publisher_->create_datawriter(ros_to_microros_graph_topic_.get(), ros_to_microros_datawriter_qos_));
|
publisher_->create_datawriter(ros_to_microros_graph_topic_.get(), ros_to_microros_datawriter_qos_));
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#include <agent/graph_manager/graph_typesupport.hpp>
|
#include <agent/graph_manager/graph_typesupport.hpp>
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace uros {
|
namespace uros {
|
||||||
namespace agent {
|
namespace agent {
|
||||||
namespace graph_manager {
|
namespace graph_manager {
|
||||||
@@ -43,7 +41,7 @@ ParticipantEntitiesInfoTypeSupport::ParticipantEntitiesInfoTypeSupport()
|
|||||||
ss << "dds_::" << message_name << "_";
|
ss << "dds_::" << message_name << "_";
|
||||||
this->setName(ss.str().c_str());
|
this->setName(ss.str().c_str());
|
||||||
|
|
||||||
char full_bounded;
|
bool full_bounded = true;
|
||||||
m_typeSize = 4 + callbacks_->max_serialized_size(full_bounded);
|
m_typeSize = 4 + callbacks_->max_serialized_size(full_bounded);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,7 +133,7 @@ MicrorosGraphInfoTypeSupport::MicrorosGraphInfoTypeSupport()
|
|||||||
ss << "dds_::" << message_name << "_";
|
ss << "dds_::" << message_name << "_";
|
||||||
this->setName(ss.str().c_str());
|
this->setName(ss.str().c_str());
|
||||||
|
|
||||||
char full_bounded;
|
bool full_bounded = true;
|
||||||
m_typeSize = 4 + callbacks_->max_serialized_size(full_bounded);
|
m_typeSize = 4 + callbacks_->max_serialized_size(full_bounded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,6 @@
|
|||||||
|
|
||||||
#include <agent/Agent.hpp>
|
#include <agent/Agent.hpp>
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
uros::agent::Agent micro_ros_agent;
|
uros::agent::Agent micro_ros_agent;
|
||||||
|
|||||||
Reference in New Issue
Block a user