Thanks for the response. I’ll play with it for a while. Need to tweak a little more…
Jeffry:
Here’s a little of what I’ve found so far:
[code]//[LEG DIMENSIONS]
//Universal dimensions for each leg in mm revise for inline and T-HEX legs alm
#define cXXCoxaLength 29 //29 This is for CH3-R with Type 3 legs OK
#define cXXFemurLength 74 //57 on type 3 legs, 74 on T-REX legs
#define cXXTibiaLength 105 //141 on type 3 legs, 105 on T-REX legs
#define cXXTarsLength 85 // 4DOF only…
//--------------------------------------------------------------------
//[MIN/MAX ANGLES]
// these limits must be for round 'bots. change coxas from 650 to 450 alm
#define cRRCoxaMin1 -450 // 550 Mechanical limits of the Right Rear Leg
#define cRRCoxaMax1 450 // 650
#define cRRFemurMin1 -1050
#define cRRFemurMax1 750
#define cRRTibiaMin1 -530
#define cRRTibiaMax1 900
#define cRRTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cRRTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
#define cRMCoxaMin1 -450 //Mechanical limits of the Right Middle Leg
#define cRMCoxaMax1 450
#define cRMFemurMin1 -1050
#define cRMFemurMax1 750
#define cRMTibiaMin1 -530
#define cRMTibiaMax1 900
#define cRMTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cRMTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
#define cRFCoxaMin1 -450 //Mechanical limits of the Right Front Leg
#define cRFCoxaMax1 450
#define cRFFemurMin1 -1050
#define cRFFemurMax1 750
#define cRFTibiaMin1 -530
#define cRFTibiaMax1 900
#define cRFTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cRFTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
#define cLRCoxaMin1 -450 //Mechanical limits of the Left Rear Leg
#define cLRCoxaMax1 450
#define cLRFemurMin1 -1050
#define cLRFemurMax1 750
#define cLRTibiaMin1 -530
#define cLRTibiaMax1 900
#define cLRTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cLRTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
#define cLMCoxaMin1 -450 //Mechanical limits of the Left Middle Leg
#define cLMCoxaMax1 450
#define cLMFemurMin1 -1050
#define cLMFemurMax1 750
#define cLMTibiaMin1 -530
#define cLMTibiaMax1 900
#define cLMTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cLMTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
#define cLFCoxaMin1 -450 //Mechanical limits of the Left Front Leg
#define cLFCoxaMax1 450
#define cLFFemurMin1 -1050
#define cLFFemurMax1 750
#define cLFTibiaMin1 -530
#define cLFTibiaMax1 900
#define cLFTarsMin1 -1300 //4DOF ONLY - In theory the kinematics can reach about -160 deg
#define cLFTarsMax1 500 //4DOF ONLY - The kinematics will never exceed 23 deg though…
[/code]
Mind you, I’m putting 3DOF T-HEX legs on a BH3. More conditional compiles for different legs sets, and different body shape (inline, round, T-HEX, ?) should be investigated.
The Servo limits probably depend both on body shape and leg type. A servo limit test would be a nice option for the code. It would allow a servo to be swung across it’s range and limits determined.
I’d like to have a matrix of code sets (program code) for different bodies, sizes and legs. All the parameters for these combinations would be available.
As a start, do you have a list of the URL’s for the code for the different 'bots you sell? Do you have a lab set up with all the different 'bots? hexapeds and quadrupeds would be a start. Then add the bipeds. Do you have a list of all the leg types?
Thanks for any help you can provide. I’d like to see a complete tested set of programs for the legged 'bots.
Alan KM6VV