Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

ROS : How to change the publishing rate of image

ACast36
Beginner
3,895 Views

The rate at which the the topic /camera/depth/aligned_depth_to_color/image_raw , is published is about 29 Fps.

 

I want to reduce this rate to publish only twice per second.

 

How could I make this change ?

0 Kudos
1 Solution
MartyG
Honored Contributor III
3,219 Views

My ROS coding knowledge is not very deep. My research indicates though that a node called Throttle is a way to limit publishing speed at roslaunch.

 

https://answers.ros.org/question/40304/creating-a-throttle-node/

View solution in original post

0 Kudos
6 Replies
MartyG
Honored Contributor III
3,219 Views

Would ros :: Rate meet your needs, please?

http://docs.ros.org/diamondback/api/rostime/html/classros_1_1Rate.html

0 Kudos
MartyG
Honored Contributor III
3,219 Views
0 Kudos
ACast36
Beginner
3,219 Views

Thanks for your response @MartyG​ .

 

Are you saying that I should subscribe to the "/camera/depth/aligned_depth_to_color/image_raw" topic (which is published after launching the rs_camera.launch file) from my own node and then republish it at a different rate ? Yes that could be a solution.

 

But wouldn't it be more efficient to change the rate at which the topics are published, from the scripts that are launched when the rs_camera launch file is launched in the first place?

 

I am not sure though where in the scripts included in that launch file is the publishing rate set .

 

 

 

 

 

0 Kudos
MartyG
Honored Contributor III
3,220 Views

My ROS coding knowledge is not very deep. My research indicates though that a node called Throttle is a way to limit publishing speed at roslaunch.

 

https://answers.ros.org/question/40304/creating-a-throttle-node/

0 Kudos
ACast36
Beginner
3,219 Views

@MartyG​  throttling worked perfect. It was so simple too !

 

Thanks so much !

0 Kudos
MartyG
Honored Contributor III
3,219 Views

You are welcome. I'm very glad I could help. :)

0 Kudos
Reply