Skip to content

use_sim_time error message is logged from multiple nodes #746

@jacobperron

Description

@jacobperron

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04 and macOS
  • Installation type:
    • source (Linux) and fat archives (macOS)
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

Run the talker C++ demo:

ros2 run demo_nodes_cpp talker

Run the listener C++ demo:

ros2 run demo_nodes_cpp listener

Set the use_sim_time parameter for the talker to something other than a bool:

ros2 param set talker use_sim_time foo

Expected behavior

We see an error (or warning) logged from the talker node regarding the type mismatch for the use_sim_time parameter. E.g.

[ERROR] [talker]: use_sim_time parameter set to something besides a bool

Actual behavior

We see the above error message, not only for the talker node, but also for the listener node. I.e. both the talker and the listener log the following error message:

[ERROR] [talker]: use_sim_time parameter set to something besides a bool

Additional information

We can see that the parameter is set on the talker node, but not on the listener node, which is correct. The bug is that we see the listener log an error when it is not expected.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions