Skip to content

Commit

Permalink
refactor(object_range_splitter)!: fix namespace and directory structu…
Browse files Browse the repository at this point in the history
…re (#7644)

* refactor: refactor object_range_splitter library and node

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

* refactor: refactor object_range_splitter library and node

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

* refactor: fix the node name

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

* refactor: rename include path

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

* refactor: remove unused dependency on sensor_msgs

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]>
  • Loading branch information
technolojin authored Jun 27, 2024
1 parent efd1afc commit 8537701
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions perception/object_range_splitter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ project(object_range_splitter)
find_package(autoware_cmake REQUIRED)
autoware_package()

ament_auto_add_library(object_range_splitter SHARED
src/node.cpp
ament_auto_add_library(${PROJECT_NAME} SHARED
src/object_range_splitter_node.cpp
)

rclcpp_components_register_node(object_range_splitter
PLUGIN "object_range_splitter::ObjectRangeSplitterNode"
rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "autoware::object_range_splitter::ObjectRangeSplitterNode"
EXECUTABLE object_range_splitter_node
)

Expand Down
1 change: 0 additions & 1 deletion perception/object_range_splitter/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<depend>autoware_perception_msgs</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>sensor_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "object_range_splitter/node.hpp"
#include "object_range_splitter_node.hpp"

namespace object_range_splitter
namespace autoware::object_range_splitter
{
ObjectRangeSplitterNode::ObjectRangeSplitterNode(const rclcpp::NodeOptions & node_options)
: Node("object_range_splitter_node", node_options)
Expand Down Expand Up @@ -59,7 +59,7 @@ void ObjectRangeSplitterNode::objectCallback(
long_range_object_pub_->publish(output_long_range_object_msg);
short_range_object_pub_->publish(output_short_range_object_msg);
}
} // namespace object_range_splitter
} // namespace autoware::object_range_splitter

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

#ifndef OBJECT_RANGE_SPLITTER__NODE_HPP_
#define OBJECT_RANGE_SPLITTER__NODE_HPP_
#ifndef OBJECT_RANGE_SPLITTER_NODE_HPP_
#define OBJECT_RANGE_SPLITTER_NODE_HPP_

#include <rclcpp/rclcpp.hpp>

#include <autoware_perception_msgs/msg/detected_objects.hpp>
#include "autoware_perception_msgs/msg/detected_objects.hpp"

#include <memory>

namespace object_range_splitter
namespace autoware::object_range_splitter
{
class ObjectRangeSplitterNode : public rclcpp::Node
{
Expand All @@ -42,6 +42,6 @@ class ObjectRangeSplitterNode : public rclcpp::Node
float spilt_range_;
};

} // namespace object_range_splitter
} // namespace autoware::object_range_splitter

#endif // OBJECT_RANGE_SPLITTER__NODE_HPP_
#endif // OBJECT_RANGE_SPLITTER_NODE_HPP_

0 comments on commit 8537701

Please sign in to comment.