Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rmcs_ws/src/rmcs_core/src/broadcaster/tf_broadcaster.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,6 +26,8 @@ class TfBroadcaster
}
~TfBroadcaster() = default;

void before_updating() override { fast_tf::rcl::broadcast_all(*tf_); }

void update() override {
using namespace std::chrono_literals;
if (*update_count_ == 0)
Expand Down
10 changes: 6 additions & 4 deletions rmcs_ws/src/rmcs_core/src/broadcaster/value_broadcaster.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,9 +19,11 @@ class ValueBroadcaster
[this](const rclcpp::Parameter& para) { update_forward_list(para.as_string_array()); });
}

void before_pairing(const std::map<std::string, const std::type_info&>& output_map) override {
for (const auto& [name, type] : output_map) {
if (type == typeid(double)) {
void before_pairing(const OutputInfoMap& output_map) override {
for (const auto& [name, output] : output_map) {
if (output.kind != rmcs_executor::InterfaceKind::Normal)
continue;
if (output.type.get() == typeid(double)) {
forward_units_.emplace(
name,
std::make_unique<ForwardUnit<double, std_msgs::msg::Float64>>(this, name));
Expand DownExpand Up@@ -117,4 +119,4 @@ class ValueBroadcaster

#include <pluginlib/class_list_macros.hpp>

PLUGINLIB_EXPORT_CLASS(rmcs_core::broadcaster::ValueBroadcaster, rmcs_executor::Component)
PLUGINLIB_EXPORT_CLASS(rmcs_core::broadcaster::ValueBroadcaster, rmcs_executor::Component)
Loading