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
f857081e
Commit
f857081e
authored
Aug 27, 2013
by
Michael Stypa
Committed by
v4hn
Oct 04, 2013
Browse files
fixed missing timestamp in camera_info and image_raw
parent
0ab494b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
libuvc_camera/src/camera_driver.cpp
View file @
f857081e
...
...
@@ -159,6 +159,8 @@ void CameraDriver::ImageCallback(uvc_frame_t *frame) {
return
;
}
ros
::
Time
timestamp
=
ros
::
Time
::
now
();
sensor_msgs
::
Image
::
Ptr
image
(
new
sensor_msgs
::
Image
());
image
->
width
=
config_
.
width
;
image
->
height
=
config_
.
height
;
...
...
@@ -174,6 +176,8 @@ void CameraDriver::ImageCallback(uvc_frame_t *frame) {
std_msgs
::
Header
::
Ptr
cinfoheader
(
new
std_msgs
::
Header
());
imageheader
->
frame_id
=
config_
.
frame_id
;
cinfoheader
->
frame_id
=
config_
.
frame_id
;
imageheader
->
stamp
=
timestamp
;
cinfoheader
->
stamp
=
timestamp
;
image
->
header
=
*
imageheader
;
cinfo
->
header
=
*
cinfoheader
;
...
...
Write
Preview
Supports
Markdown
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