[Bug 820] New: Don't try to connect two ports of the same type.

http://bugs.orocos.org/show_bug.cgi?id=820

Summary: Don't try to connect two ports of the same type.
Product: Toolchain
Version: 2.2.1
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: paul [dot] chavent [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

I have two components with the same output port name.

I use the autoconnect feature of the deployer.

It calls the "bool TaskContext::connectPorts( TaskContext* peer )" function.

This function try to find a way to connect them and print an error message if
it fails.

So i wonder if it would not be possible to avoid to try to connect two port of
the same type ?

I join a patch with the desired behavior.

[Bug 820] Don't try to connect two ports of the same type.

http://bugs.orocos.org/show_bug.cgi?id=820

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED

--- Comment #3 from Peter Soetens <peter [..] ...> 2011-02-24 21:54:07 CET ---
Applied, thanks !

[Bug 820] Don't try to connect two ports of the same type.

http://bugs.orocos.org/show_bug.cgi?id=820

--- Comment #2 from Chavent Paul <paul [dot] chavent [..] ...> 2011-02-22 16:28:12 CET ---
Created attachment 636
--> http://bugs.orocos.org/attachment.cgi?id=636
Skip connection of same ports type in TaskContext.

[Bug 820] Don't try to connect two ports of the same type.

http://bugs.orocos.org/show_bug.cgi?id=820

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |peter [..] ...

--- Comment #1 from Peter Soetens <peter [..] ...> 2011-02-22 14:37:53 CET ---
I didn't receive the patch, but I would certainly accept it.