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

suction cup interface for HERO #1114

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

suction cup interface for HERO #1114

wants to merge 4 commits into from

Conversation

shanki98
Copy link
Contributor

@shanki98 shanki98 commented May 4, 2021

No description provided.

@shanki98 shanki98 marked this pull request as ready for review May 25, 2021 17:48
Copy link
Member

@MatthijsBurgh MatthijsBurgh left a comment

Choose a reason for hiding this comment

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

Plus what we discussed

hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved
hero_skills/src/hero_skills/Suction_cup.py Outdated Show resolved Hide resolved

self._publish_marker(grasp_precompute_goal, [0, 1, 0], "grasp_point_corrected")

time.sleep(0.001) # This is necessary: the rtt_actionlib in the hardware seems
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed....

return goal_status == GoalStatus.SUCCEEDED

@property
def occupied_by_suction(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

The occupied by setter and getter are already inherited from https://github.com/tue-robotics/tue_robocup/blob/master/robot_skills/src/robot_skills/arm/gripper.py Gripper. You don't need to redefine them here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

"""
self._occupied_by_suction = value

def send_goal_suction(self, frameStamped, timeout=30, pre_grasp=False, first_joint_pos_only=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we need this function here. Getting the arm to work with different gripper is part of #1091. Which is work for another day

@shanki98
Copy link
Contributor Author

@PetervDooren , Could you have a look at the changes I pushed on June 22nd ?


goal_status = GoalStatus.SUCCEEDED

if timeout != 0.0:
Copy link
Contributor

Choose a reason for hiding this comment

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

After discussion with @MatthijsBurgh it was decided to change the behaviour. A timeout of 0 should be the default, in this case the system should wait until the action server is done and check the obtained status. Otherwise, after the timeout, the status of the action server should be checked, if the server is done the result should be used, otherwise the goal should be canceled.

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.

4 participants