PR2 / pr2_common

45 stars 79 forks source link

Forearm roll and Wrist flex axes are "backwards" (ros ticket #3123) #158

Closed ahendrix closed 11 years ago

ahendrix commented 11 years ago

Refer to: stacks/pr2_common/pr2_defs/defs/arm/arm_defs.urdf.xacro

''forearm roll joint'' {{{

...

}}}

''wrist flex joint'' {{{

...

}}}

Both of these axes are along '''negative''' axes. I was fairly certain that a long time ago (~1 year ago?) we decided that all of these should be along the positive axes.

Do we want to change these? It's definitely a very breaking change.

trac data:

ahendrix commented 11 years ago

[hsu] yes... these were artifacts of trying to match motor rotation to joint rotation. Back in March we talked about changing these back to positive joint axis, but it wasn't deemed a top priority.

ahendrix commented 11 years ago

[vpradeep] '''Pros:'''

'''Cons:'''

ahendrix commented 11 years ago

[watts] I'd have to change some scripts, but the sooner we make this the better. I'd be a supporter of anything that makes it easier to use the PR2. Now is the time to make the change, before we release Betas and while the Alpha's aren't in use. Dec 1 is the best time for me, I'll be back from IREX.

One possibility is to fix the Beta defs but not Alpha. That would make it much harder to port manipulation code from Alpha to Beta. That code will need to be ported if we make this switch anyway.

ahendrix commented 11 years ago

[berger] Before making this change, we neeed to make a list of all places that will be affected, including

ahendrix commented 11 years ago

[hsu] added patch for pr2_common stack related to this update

ahendrix commented 11 years ago

[rphilippsen] TAO translation would be easier after the switch. That said, my current code treats -1 and +1 the same in the above cases... so no worries.

ahendrix commented 11 years ago

[hsu] flipper in:

ahendrix commented 11 years ago

[vpradeep] Note that negating these joints also messes up the robot calibration procedure. I think the calibration search velocity and ref positions will both have to be negated as well.

ahendrix commented 11 years ago

[vpradeep] Ok... so I think this is what needs to change to get the robot to boot up correctly:

Any thoughts are welcome.

ahendrix commented 11 years ago

[vpradeep] PRF, PRG, and PRE now are running with the flipped joints.

r27270

ahendrix commented 11 years ago

[watts] This isn't working on a Beta wrist. Looking at r27270, it looks like the Beta wrists (in pr2_description) have the opposite flex side as the pr2_defs. I'm changing it, will let you guys know if it works.

This should have been tested on both pr2_defs/pr2_descriptions wrists before closing.

ahendrix commented 11 years ago

[hsu] Kevin, can you point out the offending file? Thanks, John

ahendrix commented 11 years ago

[watts] I just fixed this and tested it on Beta HW using pr2_description. Changed pr2_description, pr2_default_controllers.

Changes in r27323.

ahendrix commented 11 years ago

[vpradeep] Can this ticket now be closed?