Skip to content

Commit

Permalink
refactor: radar_tracks_msgs_converter library and node
Browse files Browse the repository at this point in the history
Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin committed Jun 24, 2024
1 parent 6ac4b24 commit 9a5a093
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions perception/radar_tracks_msgs_converter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ find_package(autoware_cmake REQUIRED)
autoware_package()

## Targets
ament_auto_add_library(radar_tracks_msgs_converter_node_component SHARED
src/radar_tracks_msgs_converter_node/radar_tracks_msgs_converter_node.cpp
ament_auto_add_library(${PROJECT_NAME} SHARED
src/node.cpp
)

rclcpp_components_register_node(radar_tracks_msgs_converter_node_component
PLUGIN "radar_tracks_msgs_converter::RadarTracksMsgsConverterNode"
EXECUTABLE radar_tracks_msgs_converter_node
rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "autoware::radar_tracks_msgs_converter::RadarTracksMsgsConverterNode"
EXECUTABLE ${PROJECT_NAME}_node
)

## Tests
Expand Down
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 RADAR_TRACKS_MSGS_CONVERTER__RADAR_TRACKS_MSGS_CONVERTER_NODE_HPP_
#define RADAR_TRACKS_MSGS_CONVERTER__RADAR_TRACKS_MSGS_CONVERTER_NODE_HPP_
#ifndef AUTOWARE__RADAR_TRACKS_MSGS_CONVERTER__NODE_HPP_
#define AUTOWARE__RADAR_TRACKS_MSGS_CONVERTER__NODE_HPP_

#include "autoware/universe_utils/ros/transform_listener.hpp"
#include "rclcpp/rclcpp.hpp"
Expand All @@ -32,7 +32,7 @@
#include <string>
#include <vector>

namespace radar_tracks_msgs_converter
namespace autoware::radar_tracks_msgs_converter
{
using autoware_perception_msgs::msg::DetectedObject;
using autoware_perception_msgs::msg::DetectedObjectKinematics;
Expand Down Expand Up @@ -114,6 +114,6 @@ class RadarTracksMsgsConverterNode : public rclcpp::Node
uint8_t convertClassification(const uint16_t classification);
};

} // namespace radar_tracks_msgs_converter
} // namespace autoware::radar_tracks_msgs_converter

#endif // RADAR_TRACKS_MSGS_CONVERTER__RADAR_TRACKS_MSGS_CONVERTER_NODE_HPP_
#endif // AUTOWARE__RADAR_TRACKS_MSGS_CONVERTER__NODE_HPP_
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 "radar_tracks_msgs_converter/radar_tracks_msgs_converter_node.hpp"
#include "autoware/radar_tracks_msgs_converter/node.hpp"

#include "autoware/universe_utils/geometry/geometry.hpp"
#include "autoware/universe_utils/math/unit_conversion.hpp"
Expand Down Expand Up @@ -56,7 +56,7 @@ bool update_param(
}
} // namespace

namespace radar_tracks_msgs_converter
namespace autoware::radar_tracks_msgs_converter
{

enum class RadarTrackObjectID {
Expand Down Expand Up @@ -407,7 +407,7 @@ uint8_t RadarTracksMsgsConverterNode::convertClassification(const uint16_t class
}
}

} // namespace radar_tracks_msgs_converter
} // namespace autoware::radar_tracks_msgs_converter

#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(radar_tracks_msgs_converter::RadarTracksMsgsConverterNode)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::radar_tracks_msgs_converter::RadarTracksMsgsConverterNode)

Check warning on line 413 in perception/radar_tracks_msgs_converter/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/radar_tracks_msgs_converter/src/node.cpp#L413

Added line #L413 was not covered by tests

0 comments on commit 9a5a093

Please sign in to comment.