[openrtm-users 01416] The best way to incorporate time into CameraImage datatype

4 posts / 0 new
Last post
root
Offline
Last seen: 20 hours 57 min ago
Joined: 2009-06-23 14:31
[openrtm-users 01416] The best way to incorporate time into CameraImage datatype

Hi all, I am using CameraImage for my image processing components, I noticed that the time value in the cameraImage is not updated when an image is sent out. As I am not as familiar with the openrtm structure as some of you
I was wondering, what's the best way to incorporate time into the CameraImage datatype?Should I do it manually similarly to how it's done in void setTimestamp(DataType& data) in outport.h? Thanks in adv
Regards,Tony

Undefined
root
Offline
Last seen: 20 hours 57 min ago
Joined: 2009-06-23 14:31
[openrtm-users 01417] The best way to incorporate time into Cam

Hello Tony

Originally timestamp has been updated automatically, but we found that
timestamp should be updated manually (or not updated) in some cases.
So we decided to provide timestamp function "setTimestamp()" in OutPort.h.
Please use this function in case you need timestamp in the data.

http://www.openrtm.org/OpenRTM-aist/documents/current/cxx/classreference_en/OutPort_8h-source.html

I found that this function is not clearly documented now. Sorry.

Best regards,
Noriaki Ando

2010/9/28 Tony Kuo :
> Hi all,
> I am using CameraImage for my image processing components,
> I noticed that the time value in the cameraImage is not updated when an
> image is sent out.
>
> As I am not as familiar with the openrtm structure as some of you
> I was wondering, what's the best way to incorporate time into the
> CameraImage datatype?
>
> Should I do it manually similarly to how it's done in void
> setTimestamp(DataType& data) in outport.h?
>
> Thanks in adv
> Regards,
> Tony
>
>
>
>
>

root
Offline
Last seen: 20 hours 57 min ago
Joined: 2009-06-23 14:31
[openrtm-users 01419] The best way to incorporate time into Cam

On 28/09/10 10:09, Tony Kuo wrote:
> Hi all,
> I am using CameraImage for my image processing components,
> I noticed that the time value in the cameraImage is not updated when an
> image is sent out.
>
> As I am not as familiar with the openrtm structure as some of you
> I was wondering, what's the best way to incorporate time into the
> CameraImage datatype?
>
> Should I do it manually similarly to how it's done in void
> setTimestamp(DataType& data) in outport.h?

You can do it manually if you want to set it to something special, but,
as Dr Ando mentioned, setTimestamp() is the easy way.

We don't set it automatically any more as there are numerous ways in
which a time stamp may be set - and some data ports may not need time
anyway, or use a different format for it.

Geoff

root
Offline
Last seen: 20 hours 57 min ago
Joined: 2009-06-23 14:31
[openrtm-users 01421] The best way to incorporate time into Cam

Hi Dr. Ando and Geoff:Thank you for the explanation!I was wondering why I couldn't find the setTimestamp() function in any place in the OpenRTm source code. Now I know !ThanksTony
On 28 September 2010 14:19, Geoffrey Biggs <> wrote:

On 28/09/10 10:09, Tony Kuo wrote:
> Hi all,
> I am using CameraImage for my image processing components,
> I noticed that the time value in the cameraImage is not updated when an
> image is sent out.
>
> As I am not as familiar with the openrtm structure as some of you
> I was wondering, what's the best way to incorporate time into the
> CameraImage datatype?
>
> Should I do it manually similarly to how it's done in void
> setTimestamp(DataType& data) in outport.h?

You can do it manually if you want to set it to something special, but,
as Dr Ando mentioned, setTimestamp() is the easy way.

We don't set it automatically any more as there are numerous ways in
which a time stamp may be set - and some data ports may not need time
anyway, or use a different format for it.

Geoff

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.1.0-RELESE Download page
2.0.1-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK