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: add autoware_ prefix to topic_state_monitor package #375

Merged

Conversation

mitsudome-r
Copy link
Collaborator

@mitsudome-r mitsudome-r commented Jan 24, 2025

Description

This PR adds autoware_ prefix to topic_state_monitor package.
For the details, please refer to autowarefoundation/autoware.universe#9961.

How was this PR tested?

ros2 launch aip_x2_gen2_launch topic_state_monitor.launch.py

Notes for reviewers

This must be merged with autowarefoundation/autoware.universe#9961

@@ -60,7 +60,7 @@ def generate_launch_description():

# Radar topic monitors
radar_front_center_monitor = ComposableNode(
package="topic_state_monitor",
package="autoware_topic_state_monitor",
plugin="topic_state_monitor::TopicStateMonitorNode",
Copy link

@sasakisasaki sasakisasaki Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not only package, and also this plugin needs autoware:: namespace. Thus please fix from topic_state_monitor::TopicStateMonitorNode to autoware::topic_state_monitor::TopicStateMonitorNode and other places too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in d74f504

@rej55
Copy link

rej55 commented Jan 27, 2025

@mitsudome-r It seems aip_x2_gen2_launch depends on autoware_topic_state_monitor, so should we include following line to package.xml?

<exec_depend>autoware_topic_state_monitor</exec_depend>

@mitsudome-r
Copy link
Collaborator Author

mitsudome-r commented Jan 27, 2025

@rej55 Hmm, it seems like it didn't have topic_state_monitor as a dependency to begin with maybe because it was included through other dependent packages.

I have added the dependency anyways because it's referring to the monitor directly by this launch file. c54bd0f

Copy link
Contributor

@SakodaShintaro SakodaShintaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ ros2 launch aip_x2_gen2_launch topic_state_monitor.launch.py
[INFO] [launch]: All log files can be found below /home/shintarosakoda/.ros/log/2025-01-27-12-50-11-378221-dpc2304005-66413
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [component_container-1]: process started with pid [66425]
[component_container-1] [INFO] [1737949811.723246297] [topic_state_monitor.topic_state_monitor_container]: Load Library: /home/shintarosakoda/pilot-auto_main/install/autoware_topic_state_monitor/lib/libautoware_topic_state_monitor.so
[component_container-1] [INFO] [1737949811.736709925] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.736760710] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_gnss_pose' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.746172607] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.746191113] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_imu_data' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.751009715] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.751027503] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_front_center' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.756955967] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.756974771] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_front_left' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.760449256] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.760467140] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_front_right' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.764083055] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.764100971] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_rear_center' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.767376412] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.767394513] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_rear_left' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.770647729] [topic_state_monitor.topic_state_monitor_container]: Found class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[component_container-1] [INFO] [1737949811.770661393] [topic_state_monitor.topic_state_monitor_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<autoware::topic_state_monitor::TopicStateMonitorNode>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/topic_state_monitor_radar_rear_right' in container '/topic_state_monitor/topic_state_monitor_container'
[component_container-1] [INFO] [1737949811.844541355] [topic_state_monitor_gnss_pose]: /sensing/gnss/pose has not received. Set ERROR in diagnostics.

LGTM

@mitsudome-r mitsudome-r enabled auto-merge (squash) January 27, 2025 04:37
@mitsudome-r mitsudome-r disabled auto-merge January 27, 2025 04:41
@mitsudome-r mitsudome-r enabled auto-merge (squash) January 27, 2025 04:43
Copy link

@sasakisasaki sasakisasaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick Comment

👍

Reason for Approval

As this PR's description says, this is the PR for package name prefixing. The renamed one in this PR is working as @SakodaShintaro san tested.

@mitsudome-r mitsudome-r merged commit ee218fb into tier4:tier4/universe Jan 27, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants