Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
ADC
external
libuvc_ros
Commits
a56465ac
Commit
a56465ac
authored
Dec 11, 2018
by
Johann Freymuth
Committed by
Ken Tossell
Jul 06, 2019
Browse files
use libuvc timestamp correctly
parent
b9e64431
Changes
1
Show whitespace changes
Inline
Side-by-side
libuvc_camera/src/camera_driver.cpp
View file @
a56465ac
...
...
@@ -162,7 +162,7 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
}
void
CameraDriver
::
ImageCallback
(
uvc_frame_t
*
frame
)
{
ros
::
Time
timestamp
=
ros
::
Time
(
frame
->
capture_time
.
tv_sec
,
frame
->
capture_time
.
tv_usec
);
ros
::
Time
timestamp
=
ros
::
Time
(
frame
->
capture_time
.
tv_sec
,
frame
->
capture_time
.
tv_usec
*
1000
);
if
(
timestamp
==
ros
::
Time
(
0
)
)
{
timestamp
=
ros
::
Time
::
now
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment