ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

kingkevlar's profile - activity

2019-07-09 02:46:43 -0500 received badge  Famous Question (source)
2017-03-14 02:33:59 -0500 received badge  Enthusiast
2017-03-12 16:27:16 -0500 received badge  Popular Question (source)
2017-03-12 16:27:16 -0500 received badge  Notable Question (source)
2017-03-10 22:18:39 -0500 asked a question Using ROSTopicBandwidth.print_bw()

I seem to have some confusion on how to use ROSTopicBandwidth: this is the following code I used

import rostopic

topic = '/absodom'

bandwidth = rostopic.ROSTopicBandwidth(topic)

bandwidth.print_bw()

the last line of code that should print my bandwidth returns None

When I am running my rosbag and type rostopic bw /absodom in the terminal, I can get this number to display, seemingly accurately.

Am I using my print_bw() function incorrectly? I read the API:

http://docs.ros.org/kinetic/api/rosto...

and I think i am doing this correctly.

the type on my bandwidth variable is a rostopic.ROSTopicBandwidth object so I think I initiated it correctly if nothing else.