Hi Geoff:<br>Sorry and thanks!<br>I didn't know rtresurrect includes restoration of connections between components as well. <br><br>I downloaded the source of rtsystem from its git-hub website. <br>It's named gbiggs-rtsshell-aea69f5, (I assumed it's the latest, I also installed pyYaml 3.09. )<br>
<br>I was testing it by making a mini system connecting a consoleIn and consoleOut components <br>I saved the system through RT System Editor. <br>But when I tried to resurrect the system including its connection using xml, <br>
it gave me an error saying that <br><br><div style="margin-left: 40px; color: rgb(153, 153, 153); font-family: courier new,monospace;">c:\python26\scripts\rtresurrect.py: Cannot access [[u'\\SPC105:', u'SPC105.host_<br>
cxt', u'MyConsoleIn0.rtc'], [u'\\SPC105:', u'SPC105.host_cxt', u'MyConsoleOut0.r<br>tc']]: No such directory or object.<br>Traceback (most recent call last):<br>  File "c:\python26\scripts\rtresurrect.py", line 243, in <module><br>
    sys.exit(main(sys.argv))<br>  File "c:\python26\scripts\rtresurrect.py", line 237, in main<br>    a(rtctree)<br>  File "C:\Python26\Lib\site-packages\rtsshell\actions.py", line 63, in __call__<br><br>
    result, err = self._execute(rtctree)<br>  File "C:\Python26\Lib\site-packages\rtsshell\actions.py", line 181, in _execut<br>e<br>    comp = rtctree.get_node(self._path)<br>AttributeError: 'NoneType' object has no attribute 'get_node'<br>
</div><br>Do you know what might be wrong? <br>Regards,<br>Tony<br><br><div class="gmail_quote">On 11 November 2010 15:36, Geoffrey Biggs <span dir="ltr"><<a href="mailto:geoffrey.biggs@aist.go.jp">geoffrey.biggs@aist.go.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Tony,<br>
<br>
Thanks for the feeback.<br>
<div class="im"><br>
On 29/10/10 07:53, Tony Kuo wrote:<br>
> Hi Geoff:<br>
</div><div class="im">> The first thing that came to my mind are<br>
> to improve the speed (which you already know) and also to allow<br>
> connections to be restored.<br>
><br>
> The reason I don't find rts-shells useful is that it doesn't restore the<br>
> connections between the components (correct me if I am not wrong).<br>
<br>
</div>I assume you're referring to rtresurrect here.<br>
<div class="im"><br>
> And restoring the connections is probably the most time consuming<br>
> process in developing my system.<br>
> Because I can do start, stop, activate and deactive in the Eclipse-based<br>
> RTSystemEditor.<br>
><br>
> While testing 1 particular component in a large system, I sometime find<br>
> it necessary to start, stop and reconnect the connections around just<br>
> that component.<br>
> Running my bash script for the whole system would duplicate some of the<br>
> connections that are already there (there is no way to find out whether<br>
> they are connected already or not)<br>
><br>
> If somehow, the scripts allow some kind of check on whether the<br>
> component is already alive, the connection is already done or the<br>
> components are all in Activated state (not in error or inactivated state)<br>
> it would be quite convenient I think.<br>
<br>
</div>I've just committed a change to trunk that makes rtresurrect and<br>
rtteardown use connector IDs. This means that rtresurrect will now skip<br>
connections that already exist. You can use it to restore a network to<br>
its previous state after removing only some of the connections, without<br>
any existing connections being duplicated.<br>
<div class="im"><br>
> Another small thing is if an installation has pre-requisite to run, for<br>
> example, rtcshell requires rtctree, there should be a dependency check<br>
> during installation to make it easier for users?<br>
<br>
</div>Unfortunately, the Python distutils don't yet provide a way to easily<br>
check that pre-requisites have been installed. I might try hacking<br>
something in.<br>
<br>
Geoff<br>
</blockquote></div><br>