Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed/added actions for block sorting #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vinitha910
Copy link

I changed MoveUntilTouch.py to use MoveUntilTouch. I haven't tested it yet because HERB isn't working. I removed extra arguments from PlaceObject and added the FunnelBlock action

Copy link
Contributor

@gilwoolee gilwoolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR contains 2 additional actions PlanEndEffector and FunnelBlockAction. The latter seems specific to block_sorting, so I suggest to move it to block_sorting repository.


# Now use this to get a tsr for end-effector poses
place_tsr = robot.tsrlibrary(obj, 'place', pose_tsr_chain=on_obj_tsr[0],
place_tsr = robot.tsrlibrary(obj, 'place_on', pose_tsr_chain=on_obj_tsr[0],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked herb tsr library and all other objects use 'place' with these set of arguments except for block tsr, which has 'place' for specific position. For consistency, I think we should change herbpy's 'place' tsr to have different name, change its 'place_on' to 'place' and keep this as is. See personalrobotics/herbpy#118.

allowed_tilt=self.allowed_tilt,
vertical_offset=self.height)
manip=active_manipulator)#,
#allowed_tilt=self.allowed_tilt,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these commented lines, and remove allowed_tilt and height from initialization argument.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, those lines were all removed in my local version of the code. I guess I forgot to commit it, I will do that.

direction=self.direction,
distance=self.min_distance,
max_distance=self.max_distance)
# path = planner.PlanToEndEffectorOffset(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented code block.


with env:
funnel_direction = -1. * active_manipulator.GetEndEffectorTransform()[:3,0]
funnel_direction[2] = 0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this move in -x direction? I thought funneling action also moves in +z direction.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because of the way the hand is positioned/shaped. The z axis comes out of the palm which is facing roughly downwards and the x axis goes out towards the block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants