Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: apply autoware_ prefix for dummy_infrastructure #9969

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions system/autoware_dummy_infrastructure/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.14)
project(autoware_dummy_infrastructure)

find_package(autoware_cmake REQUIRED)
autoware_package()

ament_auto_add_library(autoware_dummy_infrastructure_node_component SHARED
src/dummy_infrastructure_node/dummy_infrastructure_node.cpp
)

rclcpp_components_register_node(autoware_dummy_infrastructure_node_component
PLUGIN "autoware::dummy_infrastructure::DummyInfrastructureNode"
EXECUTABLE ${PROJECT_NAME}_node
)

ament_auto_package(
INSTALL_TO_SHARE
launch
config
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Tier IV
// Copyright 2025 Tier IV
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_
#define DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_
#ifndef AUTOWARE__DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_
#define AUTOWARE__DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_

#include <rclcpp/rclcpp.hpp>

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

namespace dummy_infrastructure
namespace autoware::dummy_infrastructure
{
using tier4_v2x_msgs::msg::InfrastructureCommand;
using tier4_v2x_msgs::msg::InfrastructureCommandArray;
Expand Down Expand Up @@ -75,6 +75,6 @@ class DummyInfrastructureNode : public rclcpp::Node
NodeParam node_param_{};
};

} // namespace dummy_infrastructure
} // namespace autoware::dummy_infrastructure

#endif // DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_
#endif // AUTOWARE__DUMMY_INFRASTRUCTURE__DUMMY_INFRASTRUCTURE_NODE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<arg name="output/state_array" default="/system/v2x/virtual_traffic_light_states"/>

<!-- Parameter -->
<arg name="config_file" default="$(find-pkg-share dummy_infrastructure)/config/dummy_infrastructure.param.yaml"/>
<arg name="config_file" default="$(find-pkg-share autoware_dummy_infrastructure)/config/dummy_infrastructure.param.yaml"/>

<!-- Node -->
<node pkg="dummy_infrastructure" exec="dummy_infrastructure_node" name="dummy_infrastructure" output="screen">
<node pkg="autoware_dummy_infrastructure" exec="autoware_dummy_infrastructure_node" name="dummy_infrastructure" output="screen">
<!-- Input -->
<remap from="~/input/command_array" to="$(var input/command_array)"/>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>dummy_infrastructure</name>
<name>autoware_dummy_infrastructure</name>
<version>0.40.0</version>
<description>dummy_infrastructure</description>
<maintainer email="[email protected]">Ryohsuke Mitsudome</maintainer>
<maintainer email="[email protected]">Junya Sasaki</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Tier IV
// Copyright 2025 Tier IV
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "dummy_infrastructure/dummy_infrastructure_node.hpp"
#include "autoware/dummy_infrastructure/dummy_infrastructure_node.hpp"

#include <boost/optional.hpp>

Expand All @@ -26,7 +26,7 @@ using std::chrono::duration_cast;
using std::chrono::nanoseconds;
using std::placeholders::_1;

namespace dummy_infrastructure
namespace autoware::dummy_infrastructure
{
namespace
{
Expand Down Expand Up @@ -192,7 +192,7 @@ void DummyInfrastructureNode::onTimer()
pub_state_array_->publish(state_array);
}

} // namespace dummy_infrastructure
} // namespace autoware::dummy_infrastructure

#include <rclcpp_components/register_node_macro.hpp>
RCLCPP_COMPONENTS_REGISTER_NODE(dummy_infrastructure::DummyInfrastructureNode)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::dummy_infrastructure::DummyInfrastructureNode)
20 changes: 0 additions & 20 deletions system/dummy_infrastructure/CMakeLists.txt

This file was deleted.

Loading