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

4 個の投稿 / 0 new
最終投稿
root
オフライン
Last seen: 1日 9時間 前
登録日: 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

未定義
root
オフライン
Last seen: 1日 9時間 前
登録日: 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
オフライン
Last seen: 1日 9時間 前
登録日: 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
オフライン
Last seen: 1日 9時間 前
登録日: 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

コメントを投稿するにはログインまたはユーザー登録を行ってください

ダウンロード

最新バージョン : 2.0.1-RELESE

統計

Webサイト統計
ユーザ数:2209
プロジェクト統計
RTコンポーネント307
RTミドルウエア35
ツール22
文書・仕様書2

Choreonoid

モーションエディタ/シミュレータ

OpenHRP3

動力学シミュレータ

OpenRTP

統合開発プラットフォーム

産総研RTC集

産総研が提供するRTC集

TORK

東京オープンソースロボティクス協会

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク