Skip to content

Commit

Permalink
fix: rename variable to reflect actual purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapaspyros committed Oct 4, 2024
1 parent d30fa97 commit 8e701a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,10 @@ inline void BaseControllerInterface::add_output(const std::string& name, const s
if (!parsed_name.empty()) {
outputs_.insert_or_assign(parsed_name, PublisherT());
custom_output_configuration_callables_.insert_or_assign(
name, [this](CustomPublishers& pub, const std::string& name) {
name, [this](CustomPublishers& pub, const std::string& topic) {
std::shared_ptr<rclcpp::Publisher<T>> publisher =
std::any_cast<std::shared_ptr<rclcpp::Publisher<T>>>(pub.first);
publisher = get_node()->create_publisher<T>(name, qos_);
publisher = get_node()->create_publisher<T>(topic, qos_);
realtime_tools::RealtimePublisherSharedPtr<T> realtime_publisher =
std::any_cast<realtime_tools::RealtimePublisherSharedPtr<T>>(pub.second);
realtime_publisher = std::make_shared<realtime_tools::RealtimePublisher<T>>(publisher);
Expand Down

0 comments on commit 8e701a2

Please sign in to comment.