Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No time stamp #44

Open
robotsoft opened this issue Oct 6, 2017 · 3 comments
Open

No time stamp #44

robotsoft opened this issue Oct 6, 2017 · 3 comments

Comments

@robotsoft
Copy link

There is no time stamp in /image_raw/header when I run rosrun libuvc_camera camera_node. I'm using Orbbec Astra Pro camera in Ubuntu16.04 and ROS Kinectic.

Here is one of example of /image_raw/header.

seq: 35
stamp:
secs: 0
nsecs: 0
frame_id: camera

@k-okada
Copy link
Contributor

k-okada commented Oct 7, 2017

the timestamp is simply copied from uvc_driver (https://github.com/ros-drivers/libuvc_ros/blob/master/libuvc_camera/src/camera_driver.cpp#L165
) , and if that is zero, then it libuvc driver failed to grab capture time, may be better to ask at https://github.com/ktossell/libuvc

@doisyg
Copy link

doisyg commented Nov 10, 2017

same issue here, I replaced the timestamp initialization by ros::Time::now() as it was breaking my application.
See here: https://github.com/doisyg/libuvc_ros/blob/14f8929498531bf3820d1d107bae52737ee27934/libuvc_camera/src/camera_driver.cpp#L165
I will be interested to follow a proper fix from libuvc

@k-okada
Copy link
Contributor

k-okada commented Apr 9, 2018

@doisyg, sorry for late replay, I found that libuvc never set timestamp(https://github.com/ktossell/libuvc/blob/master/src/stream.c#L1100) so I think it is libuvc_ros work to set timestamp

I have created the pull request here -> #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants