Skip to content

Commit b34d92c

Browse files
refactor(goal_distance_calculator): prefix package and namespace with autoware (#9172)
* refactor(goal_distance_calculator): prefix package and namespace with autoware Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 94b9ad0 commit b34d92c

12 files changed

+44
-44
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ common/autoware_auto_common/** opensource@apex.ai satoshi.ota@tier4.jp shumpei.w
44
common/autoware_component_interface_specs/** isamu.takagi@tier4.jp yukihiro.saito@tier4.jp
55
common/autoware_component_interface_tools/** isamu.takagi@tier4.jp
66
common/autoware_geography_utils/** koji.minoda@tier4.jp
7+
common/autoware_goal_distance_calculator/** taiki.tanaka@tier4.jp
78
common/autoware_grid_map_utils/** maxime.clement@tier4.jp
89
common/autoware_interpolation/** fumiya.watanabe@tier4.jp takayuki.murooka@tier4.jp
910
common/autoware_kalman_filter/** koji.minoda@tier4.jp takeshi.ishita@tier4.jp yukihiro.saito@tier4.jp
@@ -26,7 +27,6 @@ common/component_interface_utils/** isamu.takagi@tier4.jp yukihiro.saito@tier4.j
2627
common/fake_test_node/** opensource@apex.ai satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp tomoya.kimura@tier4.jp
2728
common/global_parameter_loader/** ryohsuke.mitsudome@tier4.jp
2829
common/glog_component/** takamasa.horibe@tier4.jp
29-
common/goal_distance_calculator/** taiki.tanaka@tier4.jp
3030
common/qp_interface/** fumiya.watanabe@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp
3131
common/tier4_adapi_rviz_plugin/** hiroki.ota@tier4.jp isamu.takagi@tier4.jp kosuke.takeuchi@tier4.jp
3232
common/tier4_api_utils/** isamu.takagi@tier4.jp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
project(autoware_goal_distance_calculator)
3+
4+
find_package(autoware_cmake REQUIRED)
5+
autoware_package()
6+
7+
ament_auto_add_library(${PROJECT_NAME} SHARED
8+
src/goal_distance_calculator_node.cpp
9+
src/goal_distance_calculator.cpp
10+
)
11+
12+
rclcpp_components_register_node(${PROJECT_NAME}
13+
PLUGIN "autoware::goal_distance_calculator::GoalDistanceCalculatorNode"
14+
EXECUTABLE autoware_goal_distance_calculator_node
15+
)
16+
17+
ament_auto_package(
18+
INSTALL_TO_SHARE
19+
launch
20+
config
21+
)

common/goal_distance_calculator/Readme.md common/autoware_goal_distance_calculator/Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# goal_distance_calculator
1+
# autoware_goal_distance_calculator
22

33
## Purpose
44

common/goal_distance_calculator/include/goal_distance_calculator/goal_distance_calculator.hpp common/autoware_goal_distance_calculator/include/autoware/goal_distance_calculator/goal_distance_calculator.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_
16-
#define GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_
15+
#ifndef AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_
16+
#define AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_
1717

1818
#include <autoware/universe_utils/geometry/pose_deviation.hpp>
1919
#include <rclcpp/rclcpp.hpp>
@@ -23,7 +23,7 @@
2323

2424
#include <boost/optional.hpp>
2525

26-
namespace goal_distance_calculator
26+
namespace autoware::goal_distance_calculator
2727
{
2828
using autoware::universe_utils::PoseDeviation;
2929

@@ -52,6 +52,6 @@ class GoalDistanceCalculator
5252
private:
5353
Param param_;
5454
};
55-
} // namespace goal_distance_calculator
55+
} // namespace autoware::goal_distance_calculator
5656

57-
#endif // GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_
57+
#endif // AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_HPP_

common/goal_distance_calculator/include/goal_distance_calculator/goal_distance_calculator_node.hpp common/autoware_goal_distance_calculator/include/autoware/goal_distance_calculator/goal_distance_calculator_node.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
16-
#define GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
15+
#ifndef AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
16+
#define AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
1717

18-
#include "goal_distance_calculator/goal_distance_calculator.hpp"
18+
#include "autoware/goal_distance_calculator/goal_distance_calculator.hpp"
1919

2020
#include <autoware/universe_utils/ros/debug_publisher.hpp>
2121
#include <autoware/universe_utils/ros/polling_subscriber.hpp>
@@ -30,7 +30,7 @@
3030

3131
#include <memory>
3232

33-
namespace goal_distance_calculator
33+
namespace autoware::goal_distance_calculator
3434
{
3535
struct NodeParam
3636
{
@@ -66,5 +66,5 @@ class GoalDistanceCalculatorNode : public rclcpp::Node
6666
// Core
6767
std::unique_ptr<GoalDistanceCalculator> goal_distance_calculator_;
6868
};
69-
} // namespace goal_distance_calculator
70-
#endif // GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
69+
} // namespace autoware::goal_distance_calculator
70+
#endif // AUTOWARE__GOAL_DISTANCE_CALCULATOR__GOAL_DISTANCE_CALCULATOR_NODE_HPP_
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<launch>
22
<arg name="config_file" default="$(find-pkg-share goal_distance_calculator)/config/goal_distance_calculator.param.yaml"/>
3-
<node pkg="goal_distance_calculator" exec="goal_distance_calculator_node" name="goal_distance_calculator" output="screen">
3+
<node pkg="autoware_goal_distance_calculator" exec="autoware_goal_distance_calculator_node" name="autoware_goal_distance_calculator" output="screen">
44
<param from="$(var config_file)"/>
55
</node>
66
</launch>

common/goal_distance_calculator/package.xml common/autoware_goal_distance_calculator/package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>goal_distance_calculator</name>
4+
<name>autoware_goal_distance_calculator</name>
55
<version>0.0.0</version>
6-
<description>The goal_distance_calculator package</description>
6+
<description>The autoware_goal_distance_calculator package</description>
77
<maintainer email="taiki.tanaka@tier4.jp">Taiki Tanaka</maintainer>
88
<license>Apache License 2.0</license>
99

common/goal_distance_calculator/src/goal_distance_calculator.cpp common/autoware_goal_distance_calculator/src/goal_distance_calculator.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "goal_distance_calculator/goal_distance_calculator.hpp"
15+
#include "autoware/goal_distance_calculator/goal_distance_calculator.hpp"
1616

17-
namespace goal_distance_calculator
17+
namespace autoware::goal_distance_calculator
1818
{
1919
Output GoalDistanceCalculator::update(const Input & input)
2020
{
@@ -26,4 +26,4 @@ Output GoalDistanceCalculator::update(const Input & input)
2626
return output;
2727
}
2828

29-
} // namespace goal_distance_calculator
29+
} // namespace autoware::goal_distance_calculator

common/goal_distance_calculator/src/goal_distance_calculator_node.cpp common/autoware_goal_distance_calculator/src/goal_distance_calculator_node.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "goal_distance_calculator/goal_distance_calculator_node.hpp"
15+
#include "autoware/goal_distance_calculator/goal_distance_calculator_node.hpp"
1616

1717
#include <autoware/universe_utils/math/unit_conversion.hpp>
1818
#include <rclcpp/rclcpp.hpp>
@@ -26,7 +26,7 @@
2626
#include <string>
2727
#include <utility>
2828

29-
namespace goal_distance_calculator
29+
namespace autoware::goal_distance_calculator
3030
{
3131
GoalDistanceCalculatorNode::GoalDistanceCalculatorNode(const rclcpp::NodeOptions & options)
3232
: Node("goal_distance_calculator", options),
@@ -117,7 +117,7 @@ void GoalDistanceCalculatorNode::onTimer()
117117
rclcpp::shutdown();
118118
}
119119
}
120-
} // namespace goal_distance_calculator
120+
} // namespace autoware::goal_distance_calculator
121121

122122
#include <rclcpp_components/register_node_macro.hpp>
123-
RCLCPP_COMPONENTS_REGISTER_NODE(goal_distance_calculator::GoalDistanceCalculatorNode)
123+
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::goal_distance_calculator::GoalDistanceCalculatorNode)

common/goal_distance_calculator/CMakeLists.txt

-21
This file was deleted.

0 commit comments

Comments
 (0)