Skip to content

Commit

Permalink
Namespace, file renaming, copyright
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Jan 10, 2025
1 parent 161b2a4 commit 64abc78
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nexus_visualization/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ foreach(pkg ${dep_pkgs})
endforeach()

#===============================================================================
add_library(workcell_state_visualizer SHARED src/WorkcellStateVisualizer.cpp)
add_library(workcell_state_visualizer SHARED src/workcell_state_visualizer.cpp)

target_link_libraries(workcell_state_visualizer
PUBLIC
Expand All @@ -45,7 +45,7 @@ target_include_directories(workcell_state_visualizer
target_compile_features(workcell_state_visualizer INTERFACE cxx_std_17)

rclcpp_components_register_node(workcell_state_visualizer
PLUGIN "WorkcellStateVisualizer"
PLUGIN "workcell_state_visualizer"
EXECUTABLE workcell_state_visualizer_node)

#===============================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@

#include <chrono>

#include "WorkcellStateVisualizer.hpp"
#include "workcell_state_visualizer.hpp"

using namespace std::chrono_literals;

namespace nexus::visualization {

//==============================================================================
WorkcellStateVisualizer::WorkcellStateVisualizer(const rclcpp::NodeOptions& options)
: Node("workcell_state_visualizer", options),
Expand Down Expand Up @@ -217,7 +219,8 @@ void WorkcellStateVisualizer::timer_cb()
if (!marker_array->markers.empty())
_marker_pub->publish(std::move(marker_array));
}
}

#include <rclcpp_components/register_node_macro.hpp>

RCLCPP_COMPONENTS_REGISTER_NODE(WorkcellStateVisualizer)
RCLCPP_COMPONENTS_REGISTER_NODE(nexus::visualization::WorkcellStateVisualizer)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Open Source Robotics Foundation
* Copyright (C) 2025 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,8 +15,8 @@
*
*/

#ifndef SRC__WORKCELLSTATEVISUALIZER_HPP
#define SRC__WORKCELLSTATEVISUALIZER_HPP
#ifndef SRC__WORKCELL_STATE_VISUALIZER_HPP
#define SRC__WORKCELL_STATE_VISUALIZER_HPP

#include <rclcpp/rclcpp.hpp>

Expand All @@ -31,7 +31,8 @@
#include <visualization_msgs/msg/marker.hpp>

#include <unordered_map>
#include <unordered_set>

namespace nexus::visualization {

//==============================================================================
class WorkcellStateVisualizer : public rclcpp::Node
Expand Down Expand Up @@ -80,5 +81,6 @@ class WorkcellStateVisualizer : public rclcpp::Node
std::unordered_map<std::string, WorkcellState> _workcell_states;
};

}

#endif // SRC__WORKCELLSTATEVISUALIZER_HPP

0 comments on commit 64abc78

Please sign in to comment.