by sirhoop » Tue May 13, 2008 3:21 pm
by sirhoop
Tue May 13, 2008 3:21 pm
Hi,
I am working on getting some MSRS services together for the Biloid for some weeks. By now i have got the SerialPort-communication via TossMode done and built that into a first MSRS Service.
Then I built up another Service, partnered it with the Communication Service and I could move Joints, get PresentPosition and Temperature.
So ist works, but now I have some problems building more abstract Services.
Here is the architecture i thought about.
I want to have I a BioloidJointService for every AX12. The pretty much do all the same, for they use the CM5Toss-Service for communicating with the AX12s. They only differ in there internal ID.
I want to save the ID in the state of a BioloidJointService. Now I have the problem that I want to create 18 Instances of BioloidJointService, but every single one with another id. Has anybody some idea how to do that?
There ist the possibility of defining an initial state, but that will be used for each of the 18 services.
Or do you think I should not create a service for every joint, but encapsulate the information of the joints in one service? Anyhow, I really would like to know if there's a possibility to run several ("slightly different") instances of one service.
best regards,
Alex
Hi,
I am working on getting some MSRS services together for the Biloid for some weeks. By now i have got the SerialPort-communication via TossMode done and built that into a first MSRS Service.
Then I built up another Service, partnered it with the Communication Service and I could move Joints, get PresentPosition and Temperature.
So ist works, but now I have some problems building more abstract Services.
Here is the architecture i thought about.
I want to have I a BioloidJointService for every AX12. The pretty much do all the same, for they use the CM5Toss-Service for communicating with the AX12s. They only differ in there internal ID.
I want to save the ID in the state of a BioloidJointService. Now I have the problem that I want to create 18 Instances of BioloidJointService, but every single one with another id. Has anybody some idea how to do that?
There ist the possibility of defining an initial state, but that will be used for each of the 18 services.
Or do you think I should not create a service for every joint, but encapsulate the information of the joints in one service? Anyhow, I really would like to know if there's a possibility to run several ("slightly different") instances of one service.
best regards,
Alex