From 70269aa86ace9db294c13371c0452386b909801a Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Thu, 3 Mar 2022 15:18:05 +0100 Subject: [PATCH 1/2] Implement GET_STATUS implementation result Signed-off-by: Pablo Garrido --- src/cpp/processor/Processor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cpp/processor/Processor.cpp b/src/cpp/processor/Processor.cpp index 9964d36d..fd5aa13c 100644 --- a/src/cpp/processor/Processor.cpp +++ b/src/cpp/processor/Processor.cpp @@ -781,6 +781,15 @@ bool Processor::process_get_info_packet( dds::xrce::ResultStatus result_status = root_.get_info(object_info); if (dds::xrce::STATUS_OK == result_status.status()) { + uint32_t raw_client_key; + if (server_.get_client_key(input_packet.source, raw_client_key)) + { + result_status.implementation_status(1); + } else + { + result_status.implementation_status(0); + } + dds::xrce::AGENT_ActivityInfo agent_info; agent_info.availability(1); From ba86e03bcf922ae7e9ca26e43d1c1e1fc76efcdb Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Wed, 9 Mar 2022 12:04:47 +0100 Subject: [PATCH 2/2] Update src/cpp/processor/Processor.cpp Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> --- src/cpp/processor/Processor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpp/processor/Processor.cpp b/src/cpp/processor/Processor.cpp index fd5aa13c..98ecf3a0 100644 --- a/src/cpp/processor/Processor.cpp +++ b/src/cpp/processor/Processor.cpp @@ -785,7 +785,8 @@ bool Processor::process_get_info_packet( if (server_.get_client_key(input_packet.source, raw_client_key)) { result_status.implementation_status(1); - } else + } + else { result_status.implementation_status(0); }