Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Compliance programming

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
22 postsPage 1 of 21, 2
22 postsPage 1 of 21, 2

Compliance programming

Post by Bullit » Sun Nov 19, 2006 2:29 am

Post by Bullit
Sun Nov 19, 2006 2:29 am

I decided after looking at DirtyRoboto's handshake I'd give some compliance programming a try. I was kind of impressed by the ability of the RN-1 to measure position and hence compliance. I did find one important item that was missed in DirtyRoboto's handshake. Occasionally when reading the motor position with the MotorIn command the returned reading will be 0 indicating that the servo position was not read. This needs to be handled in the code somewhere to ensure the position gets re-read. In my example I measure 2 servos to initiate walking forward, back and sideways just by pulling or pushing his right arm. A leg servo is used to sense pressing on his shoulders to make him squat.
Image
Compliance video
SourceCode
I put the source up for download instead of posting it since its rather large.
I decided after looking at DirtyRoboto's handshake I'd give some compliance programming a try. I was kind of impressed by the ability of the RN-1 to measure position and hence compliance. I did find one important item that was missed in DirtyRoboto's handshake. Occasionally when reading the motor position with the MotorIn command the returned reading will be 0 indicating that the servo position was not read. This needs to be handled in the code somewhere to ensure the position gets re-read. In my example I measure 2 servos to initiate walking forward, back and sideways just by pulling or pushing his right arm. A leg servo is used to sense pressing on his shoulders to make him squat.
Image
Compliance video
SourceCode
I put the source up for download instead of posting it since its rather large.
Image
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by Bullit » Sun Nov 19, 2006 3:00 am

Post by Bullit
Sun Nov 19, 2006 3:00 am

If you've watched the video then you have also seen my RN-1's awesome chest beat (the code is inlcuded above)

click on the small image below to see a larger version.

Image
If you've watched the video then you have also seen my RN-1's awesome chest beat (the code is inlcuded above)

click on the small image below to see a larger version.

Image
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by Ray » Sun Nov 19, 2006 5:16 am

Post by Ray
Sun Nov 19, 2006 5:16 am

Its great :D !

Thanks Bullit.
Its great :D !

Thanks Bullit.
Ray
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 230
Joined: Sun Apr 23, 2006 1:00 am
Location: HK

Post by DirtyRoboto » Sun Nov 19, 2006 8:00 am

Post by DirtyRoboto
Sun Nov 19, 2006 8:00 am

I am just about to have a look at your code but thought I would add first, that I had another routine that used the arm as a joystick but it was limited to controlling the other arm.

Marcus.
I am just about to have a look at your code but thought I would add first, that I had another routine that used the arm as a joystick but it was limited to controlling the other arm.

Marcus.
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London

Post by DirtyRoboto » Sun Nov 19, 2006 1:31 pm

Post by DirtyRoboto
Sun Nov 19, 2006 1:31 pm

Wow, I love that.
Congrats on a nice bit of code. I found it worked really well and gave a nice paternal feel to the control of the robot.

Marcus.
Wow, I love that.
Congrats on a nice bit of code. I found it worked really well and gave a nice paternal feel to the control of the robot.

Marcus.
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London

Post by Ric » Sun Nov 19, 2006 1:52 pm

Post by Ric
Sun Nov 19, 2006 1:52 pm

Paternal !
I think you may be spending too much time with your RN-1 Dirty :?

Ric
Paternal !
I think you may be spending too much time with your RN-1 Dirty :?

Ric
Ric
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 57
Joined: Wed Aug 02, 2006 1:00 am
Location: Sunny Algarve, Portugal

Post by limor » Sun Nov 19, 2006 2:40 pm

Post by limor
Sun Nov 19, 2006 2:40 pm

amazing :!:
amazing :!:
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by hivemind » Sun Nov 19, 2006 6:44 pm

Post by hivemind
Sun Nov 19, 2006 6:44 pm

So why does he seem to get angry when you push him down?-Doesnt like being repressed?

I'd watch your fingers... with those sharp grippers, if he got too angry, he could do a lot of damage.

cool.
So why does he seem to get angry when you push him down?-Doesnt like being repressed?

I'd watch your fingers... with those sharp grippers, if he got too angry, he could do a lot of damage.

cool.
hivemind
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 211
Joined: Sat Jul 01, 2006 1:00 am
Location: between my computer and robot.

Post by i-Bot » Sun Nov 19, 2006 6:49 pm

Post by i-Bot
Sun Nov 19, 2006 6:49 pm

Truly innovative concept and programming :roll:
Truly innovative concept and programming :roll:
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by beermat » Mon Nov 20, 2006 12:50 am

Post by beermat
Mon Nov 20, 2006 12:50 am

Excellent stuff!

Where did you get your RNs head from?
Excellent stuff!

Where did you get your RNs head from?
beermat
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 137
Joined: Sun Jul 23, 2006 1:00 am

Post by Bullit » Mon Nov 20, 2006 1:30 am

Post by Bullit
Mon Nov 20, 2006 1:30 am

It's a modified Lego Bionicle head. My LED eyes and mount.
It's a modified Lego Bionicle head. My LED eyes and mount.
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by plingboot » Mon Nov 20, 2006 11:24 am

Post by plingboot
Mon Nov 20, 2006 11:24 am

Could you post a bit more detail about the head modifications?

ie - pics and parts required etc?

I'd been 'experimenting' with sculpting a head and trying to cast it in a rigid latex which could be streached over a servo etc. etc.

...but your solution seems to be much more effective for far less effort. :wink:

Thanks, david
Could you post a bit more detail about the head modifications?

ie - pics and parts required etc?

I'd been 'experimenting' with sculpting a head and trying to cast it in a rigid latex which could be streached over a servo etc. etc.

...but your solution seems to be much more effective for far less effort. :wink:

Thanks, david
plingboot
Savvy Roboteer
Savvy Roboteer
Posts: 108
Joined: Thu Oct 26, 2006 1:00 am
Location: the gutter, south west london

Re: Compliance programming

Post by tempusmaster » Mon Nov 20, 2006 5:01 pm

Post by tempusmaster
Mon Nov 20, 2006 5:01 pm

Bullit wrote:I decided after looking at DirtyRoboto's handshake I'd give some compliance programming a try. I was kind of impressed by the ability of the RN-1 to measure position and hence compliance.


Very impressive. I like it a lot-

http://www.robots-dreams.com/2006/11/taking_your_rob.html

Now, if I can only figure out how to emulate the same behavoir with my humanoids.
8O
Bullit wrote:I decided after looking at DirtyRoboto's handshake I'd give some compliance programming a try. I was kind of impressed by the ability of the RN-1 to measure position and hence compliance.


Very impressive. I like it a lot-

http://www.robots-dreams.com/2006/11/taking_your_rob.html

Now, if I can only figure out how to emulate the same behavoir with my humanoids.
8O
Latest robot news, information, reviews, hacks, photos, and videos - with special on-site coverage from Japan
http://www.robots-dreams.com
tempusmaster
Site Admin
Site Admin
User avatar
Posts: 532
Joined: Thu Oct 27, 2005 1:00 am

Post by DirtyRoboto » Mon Nov 20, 2006 7:35 pm

Post by DirtyRoboto
Mon Nov 20, 2006 7:35 pm

Bullit, do you mind if I piggy back your compliance code?

I have just come up with a neat interactive game that can be played with our robots using the principals we have tried so far. It would save me a great deal of trouble of writing the code from scratch.

Thanks.

Marcus.

PS. This technique can also be used in Robo battles to invoke moves in response to outside stress.
Bullit, do you mind if I piggy back your compliance code?

I have just come up with a neat interactive game that can be played with our robots using the principals we have tried so far. It would save me a great deal of trouble of writing the code from scratch.

Thanks.

Marcus.

PS. This technique can also be used in Robo battles to invoke moves in response to outside stress.
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London

Post by Bullit » Tue Nov 21, 2006 1:08 am

Post by Bullit
Tue Nov 21, 2006 1:08 am

plingboot - I use 3 PWM ports to control 3 different color LED colors, see Hive's post here
And couple images of my robot head.

Image
Image

I use a standard HSR-8498HB mounted in the chest. Its a tight fit but it works. I've considered using a smaller servo just to be lighter. Don't really need catch and play for head rotation so a standard analog servo would do. I also considered installing a very small cirrus servo inside the head to add tilt. Just haven't gotten around to it yet. Head motion doesn't need much toque.

DirtyRoboto - Its all good as long as nobody gets hurt and as always use at your own risk.
plingboot - I use 3 PWM ports to control 3 different color LED colors, see Hive's post here
And couple images of my robot head.

Image
Image

I use a standard HSR-8498HB mounted in the chest. Its a tight fit but it works. I've considered using a smaller servo just to be lighter. Don't really need catch and play for head rotation so a standard analog servo would do. I also considered installing a very small cirrus servo inside the head to add tilt. Just haven't gotten around to it yet. Head motion doesn't need much toque.

DirtyRoboto - Its all good as long as nobody gets hurt and as always use at your own risk.
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Next
22 postsPage 1 of 21, 2
22 postsPage 1 of 21, 2