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

issue with ApproximateTime

asked 2017-12-10 21:54:27 -0500

rnunziata gravatar image

updated 2017-12-10 22:03:48 -0500

I am using a system that requires and rgb image, depth image, and camera info . Its does this by using the following:

 typedef ApproximateTime<sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo> SyncPolicy;

My problem is that the bag file I am using does not publish camera info messages. So I tried to publish it independently. But but system never invokes , I set the header to which set the vars to zero. How I can I get the system to invoke the callback in a situation like this.

The system I am using is: depth_image_proc/point_cloud_xyzrgb The node does allow for :

but seem to have not effect: there is a possibility that there is an issue with the time stamps in the bag file. But I have not looked at that yet.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-06-09 13:27:40 -0500

qilin_gundamenjoyer gravatar image

You should really check what is your bag file by running rosbag info [file name.bag]first. Also, why doesn't your .bag file include messages sent over the topics you are using, did you not include it in rosbag record -o [file_name.bag] [topic_names] before?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-10 21:54:27 -0500

Seen: 227 times

Last updated: Jun 09 '22