-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #650 from RI-SE/feature/extend_osc_support
Feature/extend osc support
- Loading branch information
Showing
21 changed files
with
567 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
#pragma once | ||
|
||
#include "atos_interfaces/msg/custom_command_action.hpp" | ||
#include "roschannel.hpp" | ||
|
||
namespace ROSChannels { | ||
namespace CustomCommandAction { | ||
const std::string topicName = "custom_command_action"; | ||
using message_type = atos_interfaces::msg::CustomCommandAction; | ||
const rclcpp::QoS defaultQoS = rclcpp::QoS(rclcpp::KeepLast(1)); | ||
|
||
class Pub : public BasePub<message_type> { | ||
public: | ||
Pub(rclcpp::Node &node, const rclcpp::QoS &qos = defaultQoS) | ||
: BasePub<message_type>(node, topicName, qos) {} | ||
}; | ||
|
||
class Sub : public BaseSub<message_type> { | ||
public: | ||
Sub(rclcpp::Node &node, | ||
std::function<void(const message_type::SharedPtr)> callback, | ||
const rclcpp::QoS &qos = defaultQoS) | ||
: BaseSub<message_type>(node, topicName, callback, qos) {} | ||
}; | ||
} // namespace CustomCommandAction | ||
} // namespace ROSChannels |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.