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

Fanuc bin picking #52

Draft
wants to merge 6 commits into
base: tool-change-example
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions initial_guess.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
header:
stamp:
sec: 1736790590
nanosec: 769190399
frame_id: world
pose:
position:
x: 0.75
y: 0
z: 0.59999999999999998
orientation:
x: 0
y: 0
z: 0.70710678118654746
w: 0.70710678118654746
15 changes: 15 additions & 0 deletions registered_pose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
header:
stamp:
sec: 1736110686
nanosec: 32573000
frame_id: world
pose:
position:
x: -0.18573307991027832
y: 0.0037446753121912479
z: 0.36070221662521362
orientation:
x: 0.00019979173269462342
y: 0.20791358031915227
z: -0.0018835711780756951
w: 0.97814727367841525
3 changes: 3 additions & 0 deletions src/fanuc_sim/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ hardware:
urdf_params:
# Use "mock", "mujoco", or "real"
- hardware_interface: "mujoco"
- mujoco_viewer: "true"

# Sets ROS global params for launch.
# [Optional]
Expand Down Expand Up @@ -112,6 +113,8 @@ ros2_control:
- "joint_trajectory_controller"
- "servo_controller"
- "joint_state_broadcaster"
- "tool_attach_controller"
- "suction_cup_controller"
# - "servo_controller"
# Load but do not start these controllers so they can be activated later if needed.
# [Optional, default=[]]
Expand Down
23 changes: 23 additions & 0 deletions src/fanuc_sim/config/control/picknik_fanuc.ros2_control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,29 @@ controller_manager:
type: joint_trajectory_controller/JointTrajectoryController
servo_controller:
type: joint_trajectory_controller/JointTrajectoryController
# A controller to enable/disable the tool attachment interface at the robot flange.
# In sim, this is modeled as a weld constraint in Mujoco.
# In a real robot, this controller would activate a mechanism to attach/detach the tool at the robot flange.
tool_attach_controller:
type: position_controllers/GripperActionController
# A controller to enable/disable the suction cup.
# In sim, this is modeled as a weld constraint in Mujoco.
# In a real robot, this controller would activate / deactivate a suction cup mechanism.
suction_cup_controller:
type: position_controllers/GripperActionController


tool_attach_controller:
ros__parameters:
default: true
joint: suction_cup_tool_interface
allow_stalling: true

suction_cup_controller:
ros__parameters:
default: true
joint: suction_cup_tool_tip
allow_stalling: true

joint_state_broadcaster:
ros__parameters:
Expand Down
1 change: 1 addition & 0 deletions src/fanuc_sim/config/moveit/picknik_fanuc.srdf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<end_effector name="fanuc_ee" parent_link="tool0" group="gripper"/>

<!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
<disable_collisions link1="arm_pedestal" link2="base_link" reason="Adjacent"/>
<disable_collisions link1="base_link" link2="link_1" reason="Adjacent"/>
<disable_collisions link1="base_link" link2="link_2" reason="Never"/>
<disable_collisions link1="base_link" link2="link_3" reason="Never"/>
Expand Down
Loading
Loading