Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Fix I-Marker Rotation for Pick Object #290

Merged
merged 2 commits into from
Jun 21, 2024
Merged
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
8 changes: 7 additions & 1 deletion src/picknik_ur_site_config/objectives/pick_object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
<Action ID="GetPointsFromUser" view_name="/wrist_mounted_camera/color/image_raw" point_names="grasp_pose" point_prompts="Select the object you wish to pick" pixel_coords="{pixel_coords}"/>
<Action ID="GetPointCloud" topic_name="/wrist_mounted_camera/depth/color/points" message_out="{point_cloud}"/>
<Action ID="GetPoseFromPixelCoords" point_cloud="{point_cloud}" pixel_coords="{pixel_coords}" downsample_fraction="0.1" neighbor_radius="0.1" output_poses="{output_poses}"/>
<Action ID="AdjustPoseWithIMarker" prompts="Adjust IMarker to desired pose" initial_poses="{output_poses}" adjusted_poses="{adjusted_poses}"/>
<Decorator ID="ForEachPoseStamped" vector_in="{output_poses}">
<Control ID="Sequence">
<Action ID="TransformPose" quaternion_xyzw="1;0;0;0" translation_xyz="0;0;0" input_pose="{pose}" output_pose="{output_poses_flipped}"/>
<Action ID="AddPoseStampedToVector" input="{output_poses_flipped}" vector="{pose_stamped_vector}"/>
</Control>
</Decorator>
<Action ID="AdjustPoseWithIMarker" prompts="Adjust IMarker to desired pose" initial_poses="{pose_stamped_vector}" adjusted_poses="{adjusted_poses}"/>
</Control>
<Decorator ID="ForEachPoseStamped" vector_in="{adjusted_poses}" out="{grasp_pose}">
<Control ID="Sequence">
Expand Down
Loading