Thanks for your answer.
The main structure of my code is as follows
def rgb_callback(data)
timestampName1 = data.header.stamp
…
def points_callback(data)
timestampName2 = data.header.stamp
…
def main():
rospy.init_node(‘gazebo_demo_py’, anonymous=True)
rospy.Subscriber(’/zedm/zed_node/left/image_rect_color’, Image, rgb_callback)
rospy.Subscriber(’/zedm/zed_node/point_cloud/cloud_registered’, PointCloud2, points_callback)
…
I conducted two experiments respectively. The first time is to obtain the relevant data of Kinect camera in gazebo. Result shows timestampname1 = timestampname2
But in another way, let me first:
roslaunch zed_ wrapper zedm. launch svo_ file:=…/ 2.svo
Then run this part of the code. At this time, timestampname1 is not equal to timestampname2
Here is the example:
========== 1650472832997097715 (timestampname1)
=============== 1650472832953676823 (timestampname2)
========== 1650472833251986330 (timestampname1)
=============== 1650472833200474628 (timestampname2)
========== 1650472833496519406 (timestampname1)
=============== 1650472833433901254 (timestampname2)
========== 1650472833730822341 (timestampname1)
=============== 1650472833667355684 (timestampname2)
Besides, we use
roslaunch zed_wrapper zedm.launch
to open zed-mini with ros. Can you make the camera run at the specified resolution?(1280,720)