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

Toggling Hide Debug causes ros2cli node name to get prefixed with n__ #65

Open
sloretz opened this issue Apr 20, 2021 · 0 comments
Open
Labels

Comments

@sloretz
Copy link
Contributor

sloretz commented Apr 20, 2021

Following this tutorial: https://docs.ros.org/en/rolling/Tutorials/Launch-Files/Creating-Launch-Files.html

I notice that toggling Debug causes the ros2cli node name to get prefixed with n__.

Launch file

from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
    return LaunchDescription([
        Node(
            package='turtlesim',
            namespace='turtlesim1',
            executable='turtlesim_node',
            name='sim'
        ),
        Node(
            package='turtlesim',
            namespace='turtlesim2',
            executable='turtlesim_node',
            name='sim'
        ),
        Node(
            package='turtlesim',
            executable='mimic',
            name='mimic',
            remappings=[
                ('/input/pose', '/turtlesim1/turtle1/pose'),
                ('/output/cmd_vel', '/turtlesim2/turtle1/cmd_vel'),
            ]
        )
    ])

Publish command

ros2 topic pub -r 1 /turtlesim1/turtle1/cmd_vel geometry_msgs/msg/Twist "{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: -1.8}}"

To reproduce, launch the launch file, start the publish command, run rqt_console, and observe what happens when Debug is toggled.

With Debug not hidden the node is /_ros2cli_52974
image

With Debug hidden the node is n__ros2cli_52974
image

I'm not sure if I would expect the node name to stay the same, or if I would expect the ros2cli node to be hidden when Debug is checked.

@sloretz sloretz added the bug label Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant