Skip to content

Commit

Permalink
chore(steer_offset_estimator): add prefix autoware_ to steer_offset_e…
Browse files Browse the repository at this point in the history
…stimator (#7342)

* add perfix

Signed-off-by: Go Sakayori <[email protected]>

* fix directory structrue

Signed-off-by: Go Sakayori <[email protected]>

* fix include guard

Signed-off-by: Go Sakayori <[email protected]>

---------

Signed-off-by: Go Sakayori <[email protected]>
  • Loading branch information
go-sakayori authored and KhalilSelyan committed Jul 22, 2024
1 parent 8f36db5 commit c3b272e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ tools/reaction_analyzer/** [email protected]
vehicle/accel_brake_map_calibrator/** [email protected] [email protected] [email protected]
vehicle/external_cmd_converter/** [email protected]
vehicle/raw_vehicle_cmd_converter/** [email protected] [email protected] [email protected]
vehicle/steer_offset_estimator/** [email protected]
vehicle/autoware_steer_offset_estimator/** [email protected]
vehicle/vehicle_info_util/** [email protected] [email protected] [email protected]

### Copied from .github/CODEOWNERS-manual ###
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(steer_offset_estimator)
project(autoware_steer_offset_estimator)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
Expand All @@ -18,7 +18,7 @@ ament_auto_add_library(steer_offset_estimator_node SHARED
)

rclcpp_components_register_node(steer_offset_estimator_node
PLUGIN "steer_offset_estimator::SteerOffsetEstimatorNode"
PLUGIN "autoware::steer_offset_estimator::SteerOffsetEstimatorNode"
EXECUTABLE steer_offset_estimator
)

Expand Down
File renamed without changes.
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 STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_
#define STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_
#ifndef AUTOWARE_STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_
#define AUTOWARE_STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_

#include "diagnostic_updater/diagnostic_updater.hpp"
#include "rclcpp/rclcpp.hpp"
Expand All @@ -24,7 +24,7 @@

#include <memory>

namespace steer_offset_estimator
namespace autoware::steer_offset_estimator
{
using geometry_msgs::msg::TwistStamped;
using tier4_debug_msgs::msg::Float32Stamped;
Expand Down Expand Up @@ -64,6 +64,6 @@ class SteerOffsetEstimatorNode : public rclcpp::Node
public:
explicit SteerOffsetEstimatorNode(const rclcpp::NodeOptions & node_options);
};
} // namespace steer_offset_estimator
} // namespace autoware::steer_offset_estimator

#endif // STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_
#endif // AUTOWARE_STEER_OFFSET_ESTIMATOR__STEER_OFFSET_ESTIMATOR_NODE_HPP_
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<launch>
<!-- Parameter -->
<arg name="config_file" default="$(find-pkg-share steer_offset_estimator)/config/steer_offset_estimator.param.yaml"/>
<arg name="config_file" default="$(find-pkg-share autoware_steer_offset_estimator)/config/steer_offset_estimator.param.yaml"/>

<!-- get wheel base from vehicle info -->
<include file="$(find-pkg-share global_parameter_loader)/launch/global_params.launch.py"/>
Expand All @@ -12,7 +12,7 @@
</include>

<!-- steer offset estimator -->
<node pkg="steer_offset_estimator" exec="steer_offset_estimator" name="steer_offset_estimator" output="screen">
<node pkg="autoware_steer_offset_estimator" exec="steer_offset_estimator" name="steer_offset_estimator" output="screen">
<param from="$(var config_file)"/>
<remap from="~/input/twist" to="$(var output_twist_topic)"/>
<remap from="~/input/steer" to="/vehicle/status/steering_status"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<package format="3">
<name>steer_offset_estimator</name>
<name>autoware_steer_offset_estimator</name>
<version>0.1.0</version>
<description>The steer_offset_estimator</description>
<maintainer email="[email protected]">Taiki Tanaka</maintainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "steer_offset_estimator/steer_offset_estimator_node.hpp"
#include "autoware_steer_offset_estimator/steer_offset_estimator_node.hpp"

#include "vehicle_info_util/vehicle_info_util.hpp"

#include <memory>
#include <utility>

namespace steer_offset_estimator
namespace autoware::steer_offset_estimator
{
SteerOffsetEstimatorNode::SteerOffsetEstimatorNode(const rclcpp::NodeOptions & node_options)
: Node("steer_offset_estimator", node_options)
Expand Down Expand Up @@ -137,7 +137,7 @@ void SteerOffsetEstimatorNode::onTimer()
pub_steer_offset_cov_->publish(std::move(cov_msg));
}
}
} // namespace steer_offset_estimator
} // namespace autoware::steer_offset_estimator

#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(steer_offset_estimator::SteerOffsetEstimatorNode)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::steer_offset_estimator::SteerOffsetEstimatorNode)

0 comments on commit c3b272e

Please sign in to comment.