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
9f49f65a
Unverified
Commit
9f49f65a
authored
Apr 13, 2018
by
Kei Okada
Committed by
GitHub
Apr 13, 2018
Browse files
Merge pull request #46 from k-okada/master
set timestamp
parents
681c6343
5cca6467
Changes
1
Hide whitespace changes
Inline
Side-by-side
libuvc_camera/src/camera_driver.cpp
View file @
9f49f65a
...
@@ -163,6 +163,9 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
...
@@ -163,6 +163,9 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
void
CameraDriver
::
ImageCallback
(
uvc_frame_t
*
frame
)
{
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
);
if
(
timestamp
==
ros
::
Time
(
0
)
)
{
timestamp
=
ros
::
Time
::
now
();
}
boost
::
recursive_mutex
::
scoped_lock
(
mutex_
);
boost
::
recursive_mutex
::
scoped_lock
(
mutex_
);
...
...
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