T-Hex calibrating

Hi Guys,

I just fine tuned my 3DOF T-Hex calibration and stubled upon a question.

Image 9 in the 3DOF T-Hex Tutorial tells me to calibrate the front and rear legs to 30 deg. The angle is measured between the middle leg to the corresponding leg.

But…

The angle also has to be defined in the configuration file. And this is referred from the center of the body (roll axis) to the leg which makes 60 deg. Although this is exactly the same angle, it could be confusing. Is it possible to change the image so the angle is referred to the body and has an angle of 60 deg as well?

PS. I talked to Zenta about the front/rear coxa angle. He uses an angle of 45 deg. As long as it is correctly defined in the software this will be fine. But it’s a good thing to decide on what angle to start with and build all T-Hex’s the same so it would be easy to exchange software. :slight_smile:

Input is welcome!

Xan

The 4DOF is 45 degrees, but the 3DOF was set to 60 degrees. I’m not sure but I think it was easier to use Phoenix code for the 3DOF, but Kåre wanted to use 45 degrees on the 4DOF version.

I’m fine with the 60 deg. But it maybe the image can be updated from 30 to 60 deg to prevent confusion?

Hallo… :wink:

I just want to say something about the calibration of the coxa. Ideally, I’m using the InitPosXX ([START POSITIONS FEET]) to define the coxa angle for coxa calibration.

Anyway, as long as the calibrated coxa angle correspond with the coxa offset in the code almost any angle would work though.

Just to be clear. In step 6 the legs are set to be perpendicular to the long dimension of the body.

Then in step 9 it says “Remove the center screws on the four corner hip servos (front right, front left, rear right, rear left), pull the servo horn off of the servo and rotate the leg outward 2 ‘clicks’, or 30°. Replace the screws when you are finished.”

Because we are telling them to rotate it 30 degrees from where it was, putting 60 degrees on the image might be just as confusing. If I got it wrong just tell me. I can take it. lol

The image you are posting in step 9 of the tutorial has an coxa angle of 30 deg, not 60 deg. 60 would be wrong anyway.

So you think it should be 45 degrees for both 4DOF and 3DOF T-Hex? Not sure why we used 60 degrees, maybe just because Phoenix used that.

Yes. I used 45 deg since the InitPositions of the leg give this value. But 30 deg would also work fine.60 deg works fine for Phoenix but its to much for T-hex IMHO.

I vote for 45 deg on both. Using the same angle is more logic when upgrading from 3 - 4 DOF.

I think I would vote for 45 degrees as well as I don’t understand any reason why the 3dof and 4dof should be different here. It would probably also make it easier to make sure we have one set of sources that works on both versions with only CFG file change. So it sounds like I need to move each of the 4 servos 1 more click? Likewise need to update the CFG files.

Kurt

Ok, 45 deg it will be then.

I also did some experimenting with the initial positions yesterday. I placed init pos of the front and rear legs further away from the middle legs. This gives more freedom when rotating. With the current setup the legs could easy collapse.

Zenta, Could you supply me the 4DOF init leg pos? I want to see if we can keep those identical as well.

Xan

He may have changed it some since then, but here is the cfg file he I got from him when I was debugging some of the 4dof as part of the other thread…

Kurt
T_Hex_4DOF_cfg.bas (9.71 KB)

We will make the appropriate changes to the 3DOF T-Hex tutorials. Thanks for the help sorting this out!

Kurt, Thanks for the file. I will compare it with my current version and make sure the final version will be updated.

Lol, no problem. It doesn’t take much time to read trough the tutorial and check it when working with the new hex. :smiley:

Xan

The init positions are different from the ones I have. I also see that the front and rear legs are in a 45 deg angle with the same coxa tars distance (sqrt(72^2 + 72^2) = 102).

I haven’t tried them but I think this would be suitable.

I update my default coxa setup to 45 deg as well and try this init positions.

Xan

I’ve adjusted the rear and frond coxa’s with an offset of 45 deg.

The following changes are made in the configuration file

  • Init positions, so the leg will not collapse
  • Min/max angles, so the front legs can not hit the body
  • init coxa angle, for the new 45 deg offset

Jim / James, This will be the last changes for now on the cfg file. Can you update the file in the tutorial page.
If you have a spare 3DOF THex, try it on. You will be amazed by the difference it makes :wink:

Xan
thex_3dof_cfg.bas (5.83 KB)

Looks like the body dimensions between the original T-Hex and the LM version are slightly different, not much though.

Nothing is like an correctly calibrated hex… :wink:

OK, I got mine converted over to 45 degrees and with the new CFG file and it is working great!!! Now to start to doing some experiments…

Kurt

Oh yeah! This is really an improvement! Thanks guys!!!