-
Notifications
You must be signed in to change notification settings - Fork 4
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 #649 from RI-SE/feature/py_scenario_module
Feature/py scenario module
- Loading branch information
Showing
41 changed files
with
4,074 additions
and
1,034 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* 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/story_board_element_state_change.hpp" | ||
#include "roschannel.hpp" | ||
|
||
namespace ROSChannels { | ||
namespace StoryBoardElementStateChange { | ||
const std::string topicName = "story_board_element_state_change"; | ||
using message_type = atos_interfaces::msg::StoryBoardElementStateChange; | ||
|
||
class Pub : public BasePub<message_type> { | ||
public: | ||
Pub(rclcpp::Node &node) | ||
: BasePub<message_type>( | ||
node, topicName, | ||
rclcpp::QoS(rclcpp::KeepLast(1)).transient_local()) {} | ||
}; | ||
|
||
class Sub : public BaseSub<message_type> { | ||
public: | ||
Sub(rclcpp::Node &node, | ||
std::function<void(const message_type::SharedPtr)> callback) | ||
: BaseSub<message_type>( | ||
node, topicName, callback, | ||
rclcpp::QoS(rclcpp::KeepLast(1)).transient_local()) {} | ||
}; | ||
} // namespace StoryBoardElementStateChange | ||
} // namespace ROSChannels |
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.