Robotics StackExchange | Archived questions

ROS 2 humble tutorial/advance/enabling topic statistics

I am learning ROS 2. For this purpose, I am using Raspberry Pi 4B 8GB running Ubuntu 22.04 AArch64. With the execution of the example in Enabling topic statistics (C++), I could not obtain the expected result.

For example, the command ros2 topic echo /statistics gives me the following error:

pi@pi-desktop:~/ros2_ws$ ros2 topic echo /statistics
Unable to convert call argument to Python object (compile in debug mode for details)

Also note that the ros2 node list command only finds 2/3 expected nodes:

pi@pi-desktop:~/ros2_ws$ ros2 node list
/minimal_publisher
/minimal_subscriber_with_topic_statistics

the t_statistics node is missing. I ran the colcon build --packages-select cpp_pubsub compilation with the following command:

pi@pi-desktop:~/ros2_ws$ colcon build --packages-select cpp_pubsub --cmake-args -DCMAKE_BUILD_TYPE=Debug

But I don't know how to use it.

Asked by lnpcrd on 2022-10-10 12:44:29 UTC

Comments

The error "Unable to convert call argument to Python object (compile in debug mode for details)" is reported here as well. Please try as suggested in the post.

Asked by ravijoshi on 2022-10-14 04:31:41 UTC

Answers