How do I print summary through ROS_INFO
I want to print the ros summary below through the ROSINFO(). How do I get access these parameters. Line the node name. How do I also get the rostopic name so I can print it on my console using ROS_INFO()
SUMMARY
PARAMETERS
- /1/chipimudriver_node/port: /dev/ttyUSB1
- /rosdistro: melodic
- /rosversion: 1.14.11
NODES - /1/chipimudrivernode (hfrimu/chipimudrivernode)
Asked by princesalasi on 2022-01-17 05:50:08 UTC
Answers
I think this package can help you solve this problem: http://wiki.ros.org/rosconsole#Console_Output_Formatting
There are a bit more documentation/sources too:
- https://answers.ros.org/question/258929/ros-logging-display-node-name/
- http://wiki.ros.org/roscpp/Overview/Logging
You can try to use rostopic
in CLI and normal system environment variables like (use ROS/system commands from inside the code) to get most of your parameters (examples for ROS are there).
Asked by ljaniec on 2022-01-17 17:38:24 UTC
Comments