Got cyton robot help needed to figure out functions

66 views
Skip to first unread message

adi

unread,
Jan 9, 2012, 5:22:38 PM1/9/12
to Cyton Robots
Hi
Can anyone send me some examples of how to use functions given by
Robai to extract the kinematics of the robot?
I want to train the robot to follow a specific path, so I want to get
inverse kinematics of the robot for various positions like in
assistive mode in the viewer
thanks and best regards

adi

unread,
Jan 9, 2012, 5:25:48 PM1/9/12
to Cyton Robots

LentinJoseph

unread,
Jan 10, 2012, 12:03:53 AM1/10/12
to Cyton Robots
Hi Aditya

There are examples placed in the installer itself ,You can
find the example in the following path
"Robai\Cyton Viewer_3.0.20110113\cyton\examples"

The examples we providing are follows

1) Filename: cytonControllerExample.cpp

Description: Example program to exercise the controlInterface class
to facilitate controlling the Cyton arm.

Contents: class cytonControlExample

If you want to move cyton in a specific path ,you can refer this example

2)Filename: cytonControlExample.cpp
Description: Example program to exercise the controlInterface class
to facilitate controlling the Cyton arm.
In this example ,we can feed a position vector ,and the code will find the
desired joint values by inverse kinematics , and move cyton in to that point
.
You can refer this example for doing inverse kinematics .

3)Filename: cytonHardwareExample.cpp

Description: Example program to exercise the hardwareInterface class
of the Cyton arm.

Using this example you can directly control cyton harware .

Hope this data will help you

Regards
Lentin .

aditya reddy

unread,
Jan 10, 2012, 12:14:22 AM1/10/12
to cyton-...@googlegroups.com
Thank you LentinJoseph
I tried it but I did not find the inverse kinematics functions in those   :(
 
regards

LentinJoseph

unread,
Jan 10, 2012, 12:42:41 AM1/10/12
to cyton-...@googlegroups.com
Hi Aditya
 
         In cyton-controlexample ,you can refer  a function called  testControlAndHardware() ,
Inside the function there is an array value
 
// Pick a desired pose that bends the arm over about 90 degrees.
  pos = Array3(-0.1405, 0.0054, 0.4315);
 
This is our postion vector or EndEffector Coordinates .We are feeding this value to actin Controlsystem ,after doing Coordinate transformation .
You will get the joint values for the desired position .
 
Below shows the code snippet for setting the desired position in control system
 
pos = Array3(-0.1405, 0.0054, 0.4315);
   desiredPose.setTranslation(pos);
   std::cout << "Attempting to move EE(" << endEffectorId <<") to position " << pos << std::endl;
 
   // Set the desired final position.
   EcBoolean passed = eeVec[endEffectorId].setParam<EndEffector::DesiredPose>(desiredPose);
 
 
The following loop will calculate the  joint values according to the time
 
for(EcU32 ii=0; ii<steps; ++ii)
   {
      // get the current time
      EcReal currentTime = simTimeStep*ii;
 
      /// calculate new joint values
      passed = control.calculateToNewTime(currentTime);
      passed &= control.getParam<ControlSystem::JointAngles>(jointAngles);
      if(!passed)
 
Hope you get my points
 
Regards
Lentin

aditya reddy

unread,
Jan 10, 2012, 1:10:34 AM1/10/12
to cyton-...@googlegroups.com
Thanks a lot Lentin this will help me a lot
Thank you

aditya reddy

unread,
Jan 10, 2012, 1:58:42 PM1/10/12
to cyton-...@googlegroups.com
I know we can get joint angles, rate from the controller
May I know what more can we get ??
Thank you

LentinJoseph

unread,
Jan 10, 2012, 11:08:29 PM1/10/12
to cyton-...@googlegroups.com
Hi Aditya
 
             I think the following link will help you .
 
 
You will get complete idea about all the classes and methods that used in cyton .
 
Thanks
Lentin
 
Sent: Wednesday, January 11, 2012 12:28 AM
Subject: Re: Got cyton robot help needed to figure out functions
 

aditya reddy

unread,
Jan 12, 2012, 2:26:25 PM1/12/12
to cyton-...@googlegroups.com
Thank you Lentin
--
Ѧᶑ¶ŢƔѦ




Reply all
Reply to author
Forward
0 new messages