Skip to content

Commit

Permalink
remove node namespace
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
xmfcx committed Dec 10, 2024
1 parent 9efb556 commit 300d5f6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions common/autoware_node/include/autoware/node/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <string>

namespace autoware::node
namespace autoware
{
using CallbackReturn = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;

Expand All @@ -36,6 +36,6 @@ class Node : public rclcpp_lifecycle::LifecycleNode
protected:
CallbackReturn on_shutdown(const rclcpp_lifecycle::State & state) override;
};
} // namespace autoware::node
} // namespace autoware

#endif // AUTOWARE__NODE__NODE_HPP_
4 changes: 2 additions & 2 deletions common/autoware_node/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <string>

namespace autoware::node
namespace autoware
{
Node::Node(
const std::string & node_name, const std::string & ns, const rclcpp::NodeOptions & options)
Expand All @@ -35,4 +35,4 @@ CallbackReturn Node::on_shutdown(const rclcpp_lifecycle::State & state)
get_node_base_interface()->get_fully_qualified_name(), state.label().c_str());
return CallbackReturn::SUCCESS;
}
} // namespace autoware::node
} // namespace autoware
4 changes: 2 additions & 2 deletions common/autoware_node/test/test_an_init_shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ TEST_F(AutowareNodeInitShutdown, NodeInitShutdown)
std::shared_ptr<rclcpp::executors::SingleThreadedExecutor> executor;
executor = std::make_shared<rclcpp::executors::SingleThreadedExecutor>();

autoware::node::Node::SharedPtr autoware_node =
std::make_shared<autoware::node::Node>("test_node", "test_ns", node_options_an_);
autoware::Node::SharedPtr autoware_node =
std::make_shared<autoware::Node>("test_node", "test_ns", node_options_an_);

executor->add_node(autoware_node->get_node_base_interface());

Expand Down
2 changes: 1 addition & 1 deletion demos/autoware_test_node/src/include/test_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace autoware::test_node
{

class TestNode : public autoware::node::Node
class TestNode : public autoware::Node
{
public:
explicit TestNode(const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
Expand Down
2 changes: 1 addition & 1 deletion demos/autoware_test_node/src/test_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace autoware::test_node
{
TestNode::TestNode(const rclcpp::NodeOptions & options)
: autoware::node::Node("test_node", "", options)
: autoware::Node("test_node", "", options)
{
RCLCPP_DEBUG(
get_logger(), "TestNode %s constructor was called.",
Expand Down

0 comments on commit 300d5f6

Please sign in to comment.