Hello Everyone,
This is my first using OROCOS that's why may be I am asking unusual question, and sorry for that.
I am using Linux Mint, and Orocos Toolchain 2.6. I have faced some trouble with the installation but now everything going fine, or I hope so.
Now I would like to know about CORBA and how to use it with orocos. I can see in the downloaded documents and on the website I can use either TAO or Omniorb and during build phase I select to use Omniorb.
Now I don't know what is wrong with my Environment. I am using this concept from the website
2.2 OmniORB
machine1 \$ omniNames -start & machine1 \$ deployer-corba-gnulinux -s demo.xml
machine2 \$ ./demogui -ORBInitRef NameService=corbaloc:iiop:192.168.12.132:2809/NameService
And the reverse
machine1 \$ omniNames -start &
machine2 \$ deployer-corba-gnulinux -s demo.xml -- -ORBInitRef NameService=corbaloc:iiop:192.168.12.132:2809/NameService
machine1 \$ ./demogui
but always I get this error Naming_Service: command not found.
I need to know what is missing, and what should I read or study to get the information about how to work on it, CORBA, Omniorb, or TAO. I don't know and I need at least to put me on the right way.
Thanks!!
Update
Sorry, the previous post was wrong, it is my mistake.
I got this error Naming_Service: command not found, when I am trying to use TAO services.
but when I am trying to use Omniorb Actually i don't know what should I do, there is no example to follow.
Thanks
Update
Your previous sample commands should be used in an omniorb CORBA environment.
On 03/27/2015 08:48 AM, alaaeldeen [dot] abdalrahman [..] ... wrote:
> Sorry, the previous post was wrong, it is my mistake.
>
> I got this error Naming_Service: command not found, when I am trying to use
> TAO services.
>
> but when I am trying to use Omniorb Actually i don't know what should I do,
> there is no example to follow.
>
> Thanks
>
Update
Yes, and I did!!
Orocos Toolchain 2.6 Using CORBA
On Mar 27, 2015, at 03:38, alaaeldeen [dot] abdalrahman [..] ... wrote:
> Hello Everyone,
>
> This is my first using OROCOS that's why may be I am asking unusual question,
> and sorry for that.
>
> I am using Linux Mint, and Orocos Toolchain 2.6. I have faced some trouble
> with the installation but now everything going fine, or I hope so.
>
> Now I would like to know about CORBA and how to use it with orocos. I can see
> in the downloaded documents and on the website I can use either TAO or
> Omniorb and during build phase I select to use Omniorb.
>
> Now I don't know what is wrong with my Environment. I am using this concept
> from the website
>
> 2.2 OmniORB
>
> machine1 \$ omniNames -start &
> machine1 \$ deployer-corba-gnulinux -s demo.xml
>
> machine2 \$ ./demogui -ORBInitRef
> NameService=corbaloc:iiop:192.168.12.132:2809/NameService
>
>
> And the reverse
>
> machine1 \$ omniNames -start &
>
> machine2 \$ deployer-corba-gnulinux -s demo.xml -- \
> -ORBInitRef NameService=corbaloc:iiop:192.168.12.132:2809/NameService
>
> machine1 \$ ./demogui
>
> but always I get this error Naming_Service: command not found.
>
> I need to know what is missing, and what should I read or study to get the
> information about how to work on it, CORBA, Omniorb, or TAO. I don't know and
> I need at least to put me on the right way.
>
> Thanks!!
Try using the same ORB ref with each program
> machine1 \$ omniNames -start &
> machine1 \$ deployer-corba-gnulinux -s demo.xml -- -ORBInitRef
> NameService=corbaloc:iiop:192.168.12.132:2809/NameService
>
> machine2 \$ ./demogui -ORBInitRef
> NameService=corbaloc:iiop:192.168.12.132:2809/NameService
Presumably 192.168.12.132 is the IP of “machine1”.
HTH
Stephen
Orocos Toolchain 2.6 Using CORBA
Thanks Stephen
Now I am using this method,
Machine One running Component One and at the end of script there is Server("Component", true).
Machine two running Two Components, 1. CORBA component for the Component One, 2. Component Two.
The Structure is Component One reads from file, and write on its output port, and Component to has an input port. and both connected to each other.
My problem now is the CORBA component of Component One dose not has any output interface?? what is missing?
Thanks, AbdAlrahman
Orocos Toolchain 2.6 Using CORBA
Hello Everyone,
Most of OROCOS Dev knows this issue happened because I am trying to use custom data type which makes the remote port output has a type that cannot be marshalled over CORBA, then it will be ignored by TaskContextProxy. But because this is my first time it takes from me long time to discover it.
By the way now I learned to start with simple application to understand and learn, and starting by 2 simple components, the first one write text (string) on it's output port, the second one do something such like print the value on it's input port since it is NEWDATA, and using script code both of this ports are connected.
What is good? now I can see the output port has known type which is string, and I can display the value in the console on both of machine1 and machine2, But the issue now is the ERRORS below:
[ ERROR ][DeploymentComponent::connect] Remote call to output.createConnection() failed with a CORBA exception: aborting connection. [ ERROR ][DeploymentComponent::connect] MARSHAL [ ERROR ][DeploymentComponent::connect] Failed to connect Port component1.output to component2.input.
I can not connect the output port of Component1 with the input port of Component2, what is missing here? However it is working fine when the Component1, and Component2 are in the same machine.
Thanks, AbdAlrahman