Corba DataPorts

Hi,I'm trying to make an Orocos application that send data to an other Orocos application over the network. I would like to do it with Corba, but it won't work.I hope that I can connect buffer-ports from the application1 to application2.
In application1, i have a task Dataout, where I defined a BufferPort<int> myoutbufport;I the main of application1 I create the task, then :ControlTaskServer::initOrb(argc,argv);ControlTaskServer* corba_server=ControlTaskServer::Create(&mytask);ControlTaskPorxy* mtask=ControlProxy::Create("name_of_mytask_application2");connectPeers(&mytask,mtask1);connectPorts(&mytask,mtask2);
In application2, I have a task that trigger on new data in the bufferport.And in the main:ControlTaskProxy::InitOrb(argv,argc);mytask2.start;ControlTaskProxy* mtask=ControlTaskProxy::Create("name_of_mytask1");
When I run application1, and I try to start, I get this error:mycorbadataport not connected.=false
Can someone help me?I use RTT 1.10.2 on a Ubuntu
Bert Godon
Tijd voor een nieuwe telefoon? Bekijk de mogelijkheden van een Windows Phone!
_________________________________________________________________
Hotmail: betrouwbare e-mail met krachtige spambescherming van Microsoft.
https://signup.live.com/signup.aspx?id=60969

Corba DataPorts

On Mon, Mar 29, 2010 at 3:35 PM, Bert Godon <bert_godon [..] ...> wrote:
> Hi,
> I'm trying to make an Orocos application that send data to an other Orocos application over the network.
> I would like to do it with Corba, but it won't work.
> I hope that I can connect buffer-ports from the application1 to application2.
> In application1, i have a task Dataout, where I defined a BufferPort<int> myoutbufport;
> I the main of application1 I create the task, then :
> ControlTaskServer::initOrb(argc,argv);
> ControlTaskServer* corba_server=ControlTaskServer::Create(&mytask);
> ControlTaskPorxy* mtask=ControlProxy::Create("name_of_mytask_application2");
> connectPeers(&mytask,mtask1);
> connectPorts(&mytask,mtask2);
> In application2, I have a task that trigger on new data in the bufferport.
> And in the main:
> ControlTaskProxy::InitOrb(argv,argc);
> mytask2.start;
> ControlTaskProxy* mtask=ControlTaskProxy::Create("name_of_mytask1");
> When I run application1, and I try to start, I get this error:
> mycorbadataport not connected.
> =false
> Can someone help me?
> I use RTT 1.10.2 on a Ubuntu

Your example pseudo code and output is too vague for us to make
something out of it. Did you try to do the same with a DataPort ? If
your application is as simple as stated, could you just email the
minimal code to reproduce this ?

If you just started playing with the RTT, maybe you'll have an easier
time with the beta2 code, wich especially improved on how data flow
ports work, also in CORBA.

Peter

Corba DataPorts

On Mar 29, 2010, at 09:35 , Bert Godon wrote:

> Hi,
> I'm trying to make an Orocos application that send data to an other Orocos application over the network.
> I would like to do it with Corba, but it won't work.
> I hope that I can connect buffer-ports from the application1 to application2.
>
> In application1, i have a task Dataout, where I defined a BufferPort<int> myoutbufport;
> I the main of application1 I create the task, then :
> ControlTaskServer::initOrb(argc,argv);
> ControlTaskServer* corba_server=ControlTaskServer::Create(&mytask);
> ControlTaskPorxy* mtask=ControlProxy::Create("name_of_mytask_application2");
> connectPeers(&mytask,mtask1);
> connectPorts(&mytask,mtask2);
>
> In application2, I have a task that trigger on new data in the bufferport.
> And in the main:
> ControlTaskProxy::InitOrb(argv,argc);
> mytask2.start;
> ControlTaskProxy* mtask=ControlTaskProxy::Create("name_of_mytask1");
>
> When I run application1, and I try to start, I get this error:
> mycorbadataport not connected.
> =false
>
> Can someone help me?
> I use RTT 1.10.2 on a Ubuntu
>
> Bert Godon

Check the mail list archives. There have been multiple posts in the past few months on this topic. I think you will find answers there ...
Stephen