[openrtm-users 01701] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

10 posts / 0 new
Last post
kohamada@idec.co.jp
Offline
Last seen: 12 years 8 months ago
Joined: 2011-05-17 18:20
[openrtm-users 01701] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

産総研 ジェフ様、各位

IDEC株式会社の濱田と申します。
現在、RTCの開発を行っております。
基本的にC++で開発しているため、Pythonは素人です。

私どものWindows環境で rtshell-3.0.0 を使ったところ、rtstart, rtstop, rtresurrect,
rtteardownでパスエラーが発生しましたので、ご報告致します。

(1)現象
rtresurrectを実行すると、必ずエラー「Path does not start at root」が発生します。
(rtstart, rtstop, rtteardown も同様です )
以下は、ConsoleIn0.rtcとConsoleOut0.rtcを使って試した結果になります。

J:\Test>rtfind .
/localhost
/localhost/ConsoleIn0.rtc
/localhost/ConsoleOut0.rtc
J:\Test>rtcon ConsoleIn0.rtc:out ConsoleOut0.rtc:in
J:\Test>rtcryo localhost -o sys.xml
J:\Test>rtresurrect sys.xml
rtresurrect.py: Path does not start at root: [u'\\localhost', u'ConsoleIn0.rtc']

(2)原因
rtresurrect.pyの中で、os.sep を使っている箇所を '/' に変更すると動きました。
文字列 localhost/ConsoleIn0.rtc の先頭へ os.sep を足した時に、os.sep の値が /
ではなくWindowsの区切り文字 \ であったため、その後の文字列分解に失敗しているのでは
ないでしょうか?

開発環境
・WindowsXP SP3
・OpenRTM-aist-1.0.0-RELEASE(C++)
・OpenRTM-aist-Python-1.0.1
・Python2.6.4
※OpenRTM-aist-1.0.0-RELEASE(C++版)を動かしている環境へ、OpenRTM-aist-Python-1.0.1、
rtctree, rtsprofile, rtshellをインストールしました。

>ジェフ様
初めてrtshellを使いました。
便利なツールをご提供頂き、どうもありがとうございます。

以上、よろしくお願い致します。

_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Undefined
gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 01706] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

濱田様

ジェフです。

詳しいバグ情報、誠にありがとうございます。

調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
す。バグを直しながらこの点も直すと思います。分かりやすくて使いやすいのた
めに、Windowsのファイルシステム扱いと同様にするつもりです。

よろしくお願いいたします。

On 17/05/11 17:57, kohamada@idec.co.jp wrote:
> 産総研 ジェフ様、各位
>
> IDEC株式会社の濱田と申します。
> 現在、RTCの開発を行っております。
> 基本的にC++で開発しているため、Pythonは素人です。
>
> 私どものWindows環境で rtshell-3.0.0 を使ったところ、rtstart, rtstop, rtresurrect,
> rtteardownでパスエラーが発生しましたので、ご報告致します。
>
> (1)現象
> rtresurrectを実行すると、必ずエラー「Path does not start at root」が発生します。
> (rtstart, rtstop, rtteardown も同様です )
> 以下は、ConsoleIn0.rtcとConsoleOut0.rtcを使って試した結果になります。
>
> J:\Test>rtfind .
> /localhost
> /localhost/ConsoleIn0.rtc
> /localhost/ConsoleOut0.rtc
> J:\Test>rtcon ConsoleIn0.rtc:out ConsoleOut0.rtc:in
> J:\Test>rtcryo localhost -o sys.xml
> J:\Test>rtresurrect sys.xml
> rtresurrect.py: Path does not start at root: [u'\\localhost', u'ConsoleIn0.rtc']
>
> (2)原因
> rtresurrect.pyの中で、os.sep を使っている箇所を '/' に変更すると動きました。
> 文字列 localhost/ConsoleIn0.rtc の先頭へ os.sep を足した時に、os.sep の値が /
> ではなくWindowsの区切り文字 \ であったため、その後の文字列分解に失敗しているのでは
> ないでしょうか?
>
> 開発環境
> ・WindowsXP SP3
> ・OpenRTM-aist-1.0.0-RELEASE(C++)
> ・OpenRTM-aist-Python-1.0.1
> ・Python2.6.4
> ※OpenRTM-aist-1.0.0-RELEASE(C++版)を動かしている環境へ、OpenRTM-aist-Python-1.0.1、
> rtctree, rtsprofile, rtshellをインストールしました。
>
> >ジェフ様
> 初めてrtshellを使いました。
> 便利なツールをご提供頂き、どうもありがとうございます。
>
> 以上、よろしくお願い致します。
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

kohamada@idec.co.jp
Offline
Last seen: 12 years 8 months ago
Joined: 2011-05-17 18:20
[openrtm-users 01707] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

ジェフ 様

お世話になっております。
IDECの濱田です。

> 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
> す。バグを直しながらこの点も直すと思います。

どうもありがとうございます。
よろしくお願い致します。

> Windowsのファイルシステム扱いと同様にするつもりです。

セパレータとして \ を使う変更をする、という意味でしょうか?
そうであれば、セパレータは / で構わないと思います。
なぜなら、RTSProfileの中では URI形式でパスを記述しているため、
これに合わせてOSに関係なくセパレータを / としても不自然ではない
と考えるからです。
1ユーザの声として、ご検討頂ければと思います。


RTSProfileやURI形式については、さきほど調べたばかりですので、間違い
ありましたらご指摘下さい。

以上、よろしくお願い致します。
=============
IDEC 濱田
kohamada@idec.co.jp

Tony Kuo
Offline
Last seen: Never ago
Joined: 2011-05-25 15:20
[openrtm-users 01717] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

Hi everyone in OpenRTM-ML:I have run into the same problem. Is there a way to get around this issue for now? so I can still use rtressurect ? Thanks!Tony2011/5/18

ジェフ 様

お世話になっております。
IDECの濱田です。

> 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
> す。バグを直しながらこの点も直すと思います。

どうもありがとうございます。
よろしくお願い致します。

> Windowsのファイルシステム扱いと同様にするつもりです。

セパレータとして \ を使う変更をする、という意味でしょうか?
そうであれば、セパレータは / で構わないと思います。
なぜなら、RTSProfileの中では URI形式でパスを記述しているため、
これに合わせてOSに関係なくセパレータを / としても不自然ではない
と考えるからです。
1ユーザの声として、ご検討頂ければと思います。


RTSProfileやURI形式については、さきほど調べたばかりですので、間違い
ありましたらご指摘下さい。

以上、よろしくお願い致します。

gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 01721] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

On 25/05/11 14:57, Tony Kuo wrote:
> Hi everyone in OpenRTM-ML:
> I have run into the same problem.
> Is there a way to get around this issue for now?
> so I can still use rtressurect ?

Hi Tony,

The development version of rtshell has this problem fixed. You can
either use that, get the affected files only from the repository, or
wait for the next release, which will be within a couple of months
(probably timed with the 1.1 release of OpenRTM-python).

Geoff

>
> Thanks!
>
> Tony
>
>
>
> ジェフ 様
>
> お世話になっております。
> IDECの濱田です。
>
> > 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感
> じがしま
> > す。バグを直しながらこの点も直すと思います。
>
> どうもありがとうございます。
> よろしくお願い致します。
>
> > Windowsのファイルシステム扱いと同様にするつもりです。
>
> セパレータとして \ を使う変更をする、という意味でしょうか?
> そうであれば、セパレータは / で構わないと思います。
> なぜなら、RTSProfileの中では URI形式でパスを記述しているため、
> これに合わせてOSに関係なくセパレータを / としても不自然ではない
> と考えるからです。
> 1ユーザの声として、ご検討頂ければと思います。
>
> ※
> RTSProfileやURI形式については、さきほど調べたばかりですので、間違い
> ありましたらご指摘下さい。
>
> 以上、よろしくお願い致します。
>
> -----Original Message-----
> From: openrtm-users-bounces@openrtm.org
>
> [mailto:openrtm-users-bounces@openrtm.org
> ] On Behalf Of Geoffrey Biggs
> Sent: Wednesday, May 18, 2011 2:43 PM
> To: openrtm-users@openrtm.org
> Subject: [openrtm-users 01706] Re: Windows環境でrtshellの一部コマン
> ドを使うとパスエラー発生
>
>
> 濱田様
>
> ジェフです。
>
> 詳しいバグ情報、誠にありがとうございます。
>
> 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
> す。バグを直しながらこの点も直すと思います。分かりやすくて使いやすいのた
> めに、Windowsのファイルシステム扱いと同様にするつもりです。
>
> よろしくお願いいたします。
>
> wrote:
> > 産総研 ジェフ様、各位
> >
> > IDEC株式会社の濱田と申します。
> > 現在、RTCの開発を行っております。
> > 基本的にC++で開発しているため、Pythonは素人です。
> >
> > 私どものWindows環境で rtshell-3.0.0 を使ったところ、rtstart,
> rtstop, rtresurrect,
> > rtteardownでパスエラーが発生しましたので、ご報告致します。
> >
> > (1)現象
> > rtresurrectを実行すると、必ずエラー「Path does not start at root」
> が発生します。
> > (rtstart, rtstop, rtteardown も同様です )
> > 以下は、ConsoleIn0.rtcとConsoleOut0.rtcを使って試した結果になります。
> >
> > J:\Test>rtfind .
> > /localhost
> > /localhost/ConsoleIn0.rtc
> > /localhost/ConsoleOut0.rtc
> > J:\Test>rtcon ConsoleIn0.rtc:out ConsoleOut0.rtc:in J:\Test>rtcryo
> > localhost -o sys.xml J:\Test>rtresurrect sys.xml
> > rtresurrect.py: Path does not start at root: [u'\\localhost',
> u'ConsoleIn0.rtc']
> >
> > (2)原因
> > rtresurrect.pyの中で、os.sep を使っている箇所を '/' に変更すると動
> きました。
> > 文字列 localhost/ConsoleIn0.rtc の先頭へ os.sep を足した時に、
> os.sep の値が /
> > ではなくWindowsの区切り文字 \ であったため、その後の文字列分解に失
> 敗しているのでは
> > ないでしょうか?
> >
> > 開発環境
> > ・WindowsXP SP3
> > ・OpenRTM-aist-1.0.0-RELEASE(C++)
> > ・OpenRTM-aist-Python-1.0.1
> > ・Python2.6.4
> > ※OpenRTM-aist-1.0.0-RELEASE(C++版)を動かしている環境へ、OpenRTM-
> aist-Python-1.0.1、
> > rtctree, rtsprofile, rtshellをインストールしました。
> >
> > >ジェフ様
> > 初めてrtshellを使いました。
> > 便利なツールをご提供頂き、どうもありがとうございます。
> >
> > 以上、よろしくお願い致します。
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
>
>
>
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Tony Kuo
Offline
Last seen: Never ago
Joined: 2011-05-25 15:20
[openrtm-users 01729] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

Geoffrey:Thank you for your fast reply and fix. I find rts-shell very useful. I will get the latest version from the SVN. Thanks againRegardsTony
2011/5/26 Geoffrey Biggs

On 25/05/11 14:57, Tony Kuo wrote:
> Hi everyone in OpenRTM-ML:
> I have run into the same problem.
> Is there a way to get around this issue for now?
> so I can still use rtressurect ?

Hi Tony,

The development version of rtshell has this problem fixed. You can
either use that, get the affected files only from the repository, or
wait for the next release, which will be within a couple of months
(probably timed with the 1.1 release of OpenRTM-python).

Geoff

>
> Thanks!
>
> Tony
>
>
>
>     ジェフ 様
>
>     お世話になっております。
>     IDECの濱田です。
>
>     > 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感
>     じがしま
>     > す。バグを直しながらこの点も直すと思います。
>
>     どうもありがとうございます。
>     よろしくお願い致します。
>
>     > Windowsのファイルシステム扱いと同様にするつもりです。
>
>     セパレータとして \ を使う変更をする、という意味でしょうか?
>     そうであれば、セパレータは / で構わないと思います。
>     なぜなら、RTSProfileの中では URI形式でパスを記述しているため、
>     これに合わせてOSに関係なくセパレータを / としても不自然ではない
>     と考えるからです。
>     1ユーザの声として、ご検討頂ければと思います。
>
>     ※
>     RTSProfileやURI形式については、さきほど調べたばかりですので、間違い
>     ありましたらご指摘下さい。
>
>     以上、よろしくお願い致します。
>
>     -----Original Message-----
>     From: openrtm-users-bounces@openrtm.org
>     <mailto:openrtm-users-bounces@openrtm.org>
>     [mailto:openrtm-users-bounces@openrtm.org
>     <mailto:openrtm-users-bounces@openrtm.org>] On Behalf Of Geoffrey Biggs
>     Sent: Wednesday, May 18, 2011 2:43 PM
>     To: openrtm-users@openrtm.org <mailto:openrtm-users@openrtm.org>
>     Subject: [openrtm-users 01706] Re: Windows環境でrtshellの一部コマン
>     ドを使うとパスエラー発生
>
>
>     濱田様
>
>     ジェフです。
>
>     詳しいバグ情報、誠にありがとうございます。
>
>     調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
>     す。バグを直しながらこの点も直すと思います。分かりやすくて使いやすいのた
>     めに、Windowsのファイルシステム扱いと同様にするつもりです。
>
>     よろしくお願いいたします。
>

>     wrote:
>     > 産総研   ジェフ様、各位
>     >
>     > IDEC株式会社の濱田と申します。
>     > 現在、RTCの開発を行っております。
>     > 基本的にC++で開発しているため、Pythonは素人です。
>     >
>     > 私どものWindows環境で rtshell-3.0.0 を使ったところ、rtstart,
>     rtstop, rtresurrect,
>     > rtteardownでパスエラーが発生しましたので、ご報告致します。
>     >
>     > (1)現象
>     > rtresurrectを実行すると、必ずエラー「Path does not start at root」
>     が発生します。
>     > (rtstart, rtstop, rtteardown も同様です )
>     > 以下は、ConsoleIn0.rtcとConsoleOut0.rtcを使って試した結果になります。
>     >
>     > J:\Test>rtfind .
>     > /localhost
>     > /localhost/ConsoleIn0.rtc
>     > /localhost/ConsoleOut0.rtc
>     > J:\Test>rtcon ConsoleIn0.rtc:out ConsoleOut0.rtc:in J:\Test>rtcryo
>     > localhost -o sys.xml J:\Test>rtresurrect sys.xml
>     > rtresurrect.py: Path does not start at root: [u'\\localhost',
>     u'ConsoleIn0.rtc']
>     >
>     > (2)原因
>     > rtresurrect.pyの中で、os.sep を使っている箇所を '/' に変更すると動
>     きました。
>     > 文字列 localhost/ConsoleIn0.rtc の先頭へ os.sep を足した時に、
>     os.sep の値が /
>     > ではなくWindowsの区切り文字 \ であったため、その後の文字列分解に失
>     敗しているのでは
>     > ないでしょうか?
>     >
>     > 開発環境
>     > ・WindowsXP SP3
>     > ・OpenRTM-aist-1.0.0-RELEASE(C++)
>     > ・OpenRTM-aist-Python-1.0.1
>     > ・Python2.6.4
>     > ※OpenRTM-aist-1.0.0-RELEASE(C++版)を動かしている環境へ、OpenRTM-
>     aist-Python-1.0.1、
>     >   rtctree, rtsprofile, rtshellをインストールしました。
>     >
>     > >ジェフ様
>     > 初めてrtshellを使いました。
>     > 便利なツールをご提供頂き、どうもありがとうございます。
>     >
>     > 以上、よろしくお願い致します。
>     _______________________________________________
>     openrtm-users mailing list
>     openrtm-users@openrtm.org <mailto:openrtm-users@openrtm.org>
>     http://www.openrtm.org/mailman/listinfo/openrtm-users
>
>
>
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 01720] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

濱田様

ジェフです。

rtshellの開発バージョンで全部のos.sepを'/'に変更しました。これでOSに関係
なくてどこでも'/'を使って、RTSProfileなどと一緒になりました。

よろしくお願いいたします。

> ジェフ 様
>
> お世話になっております。
> IDECの濱田です。
>
> > 調べたら、Windowsでrtshellの中でセパレータの使い方は少し曖昧な感じがしま
> > す。バグを直しながらこの点も直すと思います。
>
> どうもありがとうございます。
> よろしくお願い致します。
>
> > Windowsのファイルシステム扱いと同様にするつもりです。
>
> セパレータとして \ を使う変更をする、という意味でしょうか?
> そうであれば、セパレータは / で構わないと思います。
> なぜなら、RTSProfileの中では URI形式でパスを記述しているため、
> これに合わせてOSに関係なくセパレータを / としても不自然ではない
> と考えるからです。
> 1ユーザの声として、ご検討頂ければと思います。
>
> ※
> RTSProfileやURI形式については、さきほど調べたばかりですので、間違い
> ありましたらご指摘下さい。
>
> 以上、よろしくお願い致します。

kohamada@idec.co.jp
Offline
Last seen: 12 years 8 months ago
Joined: 2011-05-17 18:20
[openrtm-users 01732] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

ジェフ様

お世話になっております。
IDECの濱田です。

ご対応頂き、どうもありがとうございます。
github から取得して、以下のコマンドが使えることを確認しました。
rtcheck
rtresurrect
rtstart
rtstop
rtteardown

RTCシステム全体の起動/終了などの操作をする時に、BATファイルが
使えるので、とても便利ですね。

どうもありがとうございました。

gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 01733] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

濱田様

ジェフです。

ご報告、ありがとうございます。

よろしくお願いいたします。

On 27/05/11 14:35, kohamada@idec.co.jp wrote:
> ジェフ様
>
> お世話になっております。
> IDECの濱田です。
>
> ご対応頂き、どうもありがとうございます。
> github から取得して、以下のコマンドが使えることを確認しました。
> rtcheck
> rtresurrect
> rtstart
> rtstop
> rtteardown
>
> RTCシステム全体の起動/終了などの操作をする時に、BATファイルが
> 使えるので、とても便利ですね。
>
> どうもありがとうございました。

Tony Kuo
Offline
Last seen: Never ago
Joined: 2011-05-25 15:20
[openrtm-users 01734] Windows環境でrtshellの一部コマンドを使うとパスエラー発生

Hi Geoff and all:Thank you,I diff the latest development version and added the changes you made in the last version to rts-shell 3.0. many commands worked after that. Thanks for your prompt help!
Tony2011/5/27

ジェフ様

お世話になっております。
IDECの濱田です。

ご対応頂き、どうもありがとうございます。
github から取得して、以下のコマンドが使えることを確認しました。
 rtcheck
 rtresurrect
 rtstart
 rtstop
 rtteardown

RTCシステム全体の起動/終了などの操作をする時に、BATファイルが
使えるので、とても便利ですね。

どうもありがとうございました。

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-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