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

zzzzzq's profile - activity

2019-05-20 01:13:19 -0500 marked best answer ar_track_alvar publication rate too small

Hello! These days I'm trying to use ar_track_alvar to track ar tags but the publication of ar_track_poses is too slow.

I use Ubuntu 16.04 and ros kinetic. My CPU is Intel I7 with 8G memory. When I use ar_track_alvar, it onlypublish /ar_pose_markers at poorly 0.2hz.

I also found that the problem is the rate at which the callback function is called. That function is called merely once every 5 secs. But I can't find anything wrong. I also checked the while(ros::ok()) loop, it tooks 5 secs per loop. However, every step in that loop is very quick. It shouldn't take that long to run each loop. I also checked that the expected rate per loop is 8 hz but actual rate is 0.2 hz. I did this by checking rate.expectedCycleTime() and rate.cycleTime().

Here is the code and the while loop is at line 326.

I have also tested it on Ubuntu 14.04 and ros indigo, the publication rate is 1hz. However my friend can use it with a publication rate of 8 hz on Ubuntu 14.04 and indigo. That's very odd.

Thanks!

2018-11-23 07:59:15 -0500 received badge  Famous Question (source)
2018-03-31 07:51:19 -0500 answered a question ar_track_alvar publication rate too small

I have fixed that error. The problem is the code, there is a ros::Duration(5.0) in my code. But when I checked the origi

2018-03-31 07:45:53 -0500 received badge  Enthusiast
2018-03-29 00:09:38 -0500 received badge  Notable Question (source)
2018-03-28 21:22:51 -0500 commented answer ar_track_alvar publication rate too small

Thanks for your suggestion! I have changed my question and will delete this answer

2018-03-28 21:22:14 -0500 edited question ar_track_alvar publication rate too small

ar_track_alvar publication rate too small Hello! These days I'm trying to use ar_track_alvar to track ar tags but the pu

2018-03-28 11:12:30 -0500 answered a question ar_track_alvar publication rate too small

I also checked the while(ros::ok())loop, it tooks 5 secs per loop. However, every step in that loop is very quick. It sh

2018-03-28 04:14:30 -0500 edited question ar_track_alvar publication rate too small

ar_track_alvar publication rate too small Hello! These days I'm trying to use ar_track_alvar to track ar tags but the pu

2018-03-28 04:14:30 -0500 received badge  Editor (source)
2018-03-28 04:10:41 -0500 edited answer ar_track_alvar publication rate too small

Now the situation is very odd. The rate of image topic is 30hz and the time of run callback function is very small, abou

2018-03-28 02:56:19 -0500 answered a question ar_track_alvar publication rate too small

Now the situation is very odd. The rate of image topic is 30hz and the time of run callback function is very small, abou

2018-03-27 22:47:37 -0500 received badge  Popular Question (source)
2018-03-26 21:59:34 -0500 commented question ar_track_alvar publication rate too small

I checked the CPU usage, it seems that the usage of ar_track_alvar node is always around 2%, regardless of whether I tur

2018-03-26 20:31:35 -0500 commented question ar_track_alvar publication rate too small

The image is raw image from the camera. I use ASUS xtion and the image topic is /camera/rgb/image_raw

2018-03-26 10:17:58 -0500 asked a question ar_track_alvar pose publication too slow

ar_track_alvar pose publication too slow Helloļ¼ These days I'm using ar_track_alvar but have some problems about the pos

2018-03-26 10:17:57 -0500 asked a question ar_track_alvar publication rate too small

ar_track_alvar publication rate too small Hello! These days I'm trying to use ar_track_alvar to track ar tags but the pu