Skip to content

Commit

Permalink
refactor(object_velocity_splitter)!: fix namespace and directory stru…
Browse files Browse the repository at this point in the history
…cture (autowarefoundation#7646)

* refactor: refactor object_velocity_splitter_node component

Signed-off-by: Taekjin LEE <[email protected]>

* refactor: fix the node name

Signed-off-by: Taekjin LEE <[email protected]>

* refactor: move header file to src

Signed-off-by: Taekjin LEE <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
Signed-off-by: palas21 <[email protected]>
  • Loading branch information
technolojin authored and palas21 committed Jul 12, 2024
1 parent 0e1b80f commit 9f6f919
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions perception/object_velocity_splitter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

# Targets
ament_auto_add_library(object_velocity_splitter_node_component SHARED
src/object_velocity_splitter_node/object_velocity_splitter_node.cpp
ament_auto_add_library(${PROJECT_NAME} SHARED
src/object_velocity_splitter_node.cpp
)

rclcpp_components_register_node(object_velocity_splitter_node_component
PLUGIN "object_velocity_splitter::ObjectVelocitySplitterNode"
rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "autoware::object_velocity_splitter::ObjectVelocitySplitterNode"
EXECUTABLE object_velocity_splitter_node
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "object_velocity_splitter/object_velocity_splitter_node.hpp"
#include "object_velocity_splitter_node.hpp"

#include "autoware/universe_utils/geometry/geometry.hpp"

Expand Down Expand Up @@ -40,7 +40,7 @@ bool update_param(
}
} // namespace

namespace object_velocity_splitter
namespace autoware::object_velocity_splitter
{
using autoware_perception_msgs::msg::DetectedObject;
using autoware_perception_msgs::msg::DetectedObjects;
Expand Down Expand Up @@ -110,7 +110,7 @@ rcl_interfaces::msg::SetParametersResult ObjectVelocitySplitterNode::onSetParam(
return result;
}

} // namespace object_velocity_splitter
} // namespace autoware::object_velocity_splitter

#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(object_velocity_splitter::ObjectVelocitySplitterNode)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::object_velocity_splitter::ObjectVelocitySplitterNode)
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef OBJECT_VELOCITY_SPLITTER__OBJECT_VELOCITY_SPLITTER_NODE_HPP_
#define OBJECT_VELOCITY_SPLITTER__OBJECT_VELOCITY_SPLITTER_NODE_HPP_
#ifndef OBJECT_VELOCITY_SPLITTER_NODE_HPP_
#define OBJECT_VELOCITY_SPLITTER_NODE_HPP_

#include "rclcpp/rclcpp.hpp"

Expand All @@ -24,7 +24,7 @@
#include <string>
#include <vector>

namespace object_velocity_splitter
namespace autoware::object_velocity_splitter
{
using autoware_perception_msgs::msg::DetectedObject;
using autoware_perception_msgs::msg::DetectedObjects;
Expand Down Expand Up @@ -62,6 +62,6 @@ class ObjectVelocitySplitterNode : public rclcpp::Node
NodeParam node_param_{};
};

} // namespace object_velocity_splitter
} // namespace autoware::object_velocity_splitter

#endif // OBJECT_VELOCITY_SPLITTER__OBJECT_VELOCITY_SPLITTER_NODE_HPP_
#endif // OBJECT_VELOCITY_SPLITTER_NODE_HPP_

0 comments on commit 9f6f919

Please sign in to comment.