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

launch node can't dispaly RCLCPP_INFO infomation immediately #342

Closed
ccy89 opened this issue Sep 25, 2019 · 1 comment
Closed

launch node can't dispaly RCLCPP_INFO infomation immediately #342

ccy89 opened this issue Sep 25, 2019 · 1 comment

Comments

@ccy89
Copy link

ccy89 commented Sep 25, 2019

  • Operating System:
    • Ubuntu 18.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • dashing
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

use ros2/examples to test ros2 launch. Create a launch file with the following content and launch it.

from launch import LaunchDescription
from launch_ros.actions import Node

def generate_launch_description():
    return LaunchDescription([
        Node(
            package='examples_rclcpp_minimal_subscriber',
            node_executable='subscriber_lambda',
            node_name='subscriber_demo',
            output='screen',
        ),
        Node(
            package='examples_rclcpp_minimal_publisher',
            node_executable='publisher_lambda',
            node_name='publisher_demo',
            output='screen',
        ),
    ])

Expected behavior

The terminal will display node's INFO message immediately, like:

[subscriber_lambda-1] [INFO] [subscriber_demo]: I heard: 'Hello, world! 0'

Actual behavior

The terminal does not display any information at the beginning:
Screenshot from 2019-09-25 13-36-38

After a while, the terminal displays all information at once.
Screenshot from 2019-09-25 13-37-09

just like the subscriber is blocking.

Additional information

I run the command

ros2 topic echo /topic

Screenshot from 2019-09-25 14-09-35
I can echo "/topic" normally.

Is this a bug, or is it like this?

@ivanpauno
Copy link
Member

Check #188 and ros2/rcutils#168.
Closing as duplicate.

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

No branches or pull requests

2 participants