gbiggs / rtshell

Shell commands for managing RT-Middleware running on OpenRTM-aist.
http://openrtm.org
GNU Lesser General Public License v3.0
10 stars 17 forks source link

Parentheses in the component name should be escaped #37

Closed rafaelxero closed 7 years ago

rafaelxero commented 7 years ago

When having a component named such as Controller(Robot), the dot file generated by rtstodot has incorrect syntax:

Controller(Robot):outPort->otherComp:inPort;

While the expected syntax is:

"Controller(Robot)0":outPort -> otherComp:inPort;
//or
Controller_leftp_Robot_rightp_0:outPort -> otherComp:inPort;

I suggest to update the escape function to include parentheses or to always use quoted component names.