[openrtm-users 02809] Checking connection before connecting two ports

shanshan1370 @ sina.com shanshan1370 @ sina.com
2013年 6月 1日 (土) 01:45:55 JST


Dear All: There’s one problem bothering me for months. I’d like to
connect two ports by programming with Java API. This is no problem. The
problem is I want to check whether these two ports have already been
connected before I do the connecting. Here’s my way. 1. I can get the
connection information by this method: ConnectorProfile
PortService.get_connector_profiles(); 2. I can get the two ports: PortService
ConnectorProfile.ports; 3. Each ports’ name, profile, owner, etc. The key
problem is how to decide whether two PortServices are identical, or whether
two RTObjects are indentical. So that I can decide whether the port has been
connected or not. Due to there could be different RT-components with the same
name under different path, it makes this problem more complicated. Please
help me out. Thanks a lot! Wenshan



More information about the openrtm-users mailing list