added grasp link to urdf

This commit is contained in:
Ian Chuang 2024-04-01 19:32:04 -07:00
parent fb94505278
commit a7a77bf2e1
2 changed files with 118 additions and 37 deletions

View file

@ -4,9 +4,14 @@ Panels:
Name: Displays Name: Displays
Property Tree Widget: Property Tree Widget:
Expanded: Expanded:
- /Global Options1
- /Status1
- /RobotModel1/Description Topic1 - /RobotModel1/Description Topic1
- /TF1
- /TF1/Frames1
- /TF1/Tree1
Splitter Ratio: 0.5 Splitter Ratio: 0.5
Tree Height: 1096 Tree Height: 784
- Class: rviz_common/Selection - Class: rviz_common/Selection
Name: Selection Name: Selection
- Class: rviz_common/Tool Properties - Class: rviz_common/Tool Properties
@ -59,66 +64,130 @@ Visualization Manager:
Expand Link Details: false Expand Link Details: false
Expand Tree: false Expand Tree: false
Link Tree Style: Links in Alphabetic Order Link Tree Style: Links in Alphabetic Order
base: ag95_base_link:
Alpha: 1
Show Axes: false
Show Trail: false
base_link:
Alpha: 1
Show Axes: false
Show Trail: false
base_link_inertia:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
flange: ag95_body:
Alpha: 1
Show Axes: false
Show Trail: false
forearm_link:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
shoulder_link: grasp_link:
Alpha: 1
Show Axes: false
Show Trail: false
left_finger:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
tool0: left_finger_pad:
Alpha: 1
Show Axes: false
Show Trail: false
upper_arm_link:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
wrist_1_link: left_inner_knuckle:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
wrist_2_link: left_outer_knuckle:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
wrist_3_link: right_finger:
Alpha: 1 Alpha: 1
Show Axes: false Show Axes: false
Show Trail: false Show Trail: false
Value: true Value: true
right_finger_pad:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
right_inner_knuckle:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
right_outer_knuckle:
Alpha: 1
Show Axes: false
Show Trail: false
Value: true
world:
Alpha: 1
Show Axes: false
Show Trail: false
Mass Properties:
Inertia: false
Mass: false
Name: RobotModel Name: RobotModel
TF Prefix: "" TF Prefix: ""
Update Interval: 0 Update Interval: 0
Value: true Value: true
Visual Enabled: true Visual Enabled: true
- Class: rviz_default_plugins/TF
Enabled: true
Frame Timeout: 15
Frames:
All Enabled: false
ag95_base_link:
Value: false
ag95_body:
Value: false
grasp_link:
Value: true
left_finger:
Value: false
left_finger_pad:
Value: false
left_inner_knuckle:
Value: false
left_outer_knuckle:
Value: false
right_finger:
Value: false
right_finger_pad:
Value: false
right_inner_knuckle:
Value: false
right_outer_knuckle:
Value: false
world:
Value: false
Marker Scale: 1
Name: TF
Show Arrows: true
Show Axes: true
Show Names: false
Tree:
world:
ag95_base_link:
ag95_body:
left_inner_knuckle:
{}
left_outer_knuckle:
left_finger:
left_finger_pad:
{}
right_inner_knuckle:
{}
right_outer_knuckle:
right_finger:
right_finger_pad:
{}
grasp_link:
{}
Update Interval: 0
Value: true
Enabled: true Enabled: true
Global Options: Global Options:
Background Color: 48; 48; 48 Background Color: 48; 48; 48
Fixed Frame: base_link Fixed Frame: ag95_base_link
Frame Rate: 30 Frame Rate: 30
Name: root Name: root
Tools: Tools:
@ -130,6 +199,9 @@ Visualization Manager:
- Class: rviz_default_plugins/Measure - Class: rviz_default_plugins/Measure
Line color: 128; 128; 0 Line color: 128; 128; 0
- Class: rviz_default_plugins/SetInitialPose - Class: rviz_default_plugins/SetInitialPose
Covariance x: 0.25
Covariance y: 0.25
Covariance yaw: 0.06853891909122467
Topic: Topic:
Depth: 5 Depth: 5
Durability Policy: Volatile Durability Policy: Volatile
@ -158,39 +230,39 @@ Visualization Manager:
Views: Views:
Current: Current:
Class: rviz_default_plugins/Orbit Class: rviz_default_plugins/Orbit
Distance: 3.493516445159912 Distance: 0.7534506320953369
Enable Stereo Rendering: Enable Stereo Rendering:
Stereo Eye Separation: 0.05999999865889549 Stereo Eye Separation: 0.05999999865889549
Stereo Focal Distance: 1 Stereo Focal Distance: 1
Swap Stereo Eyes: false Swap Stereo Eyes: false
Value: false Value: false
Focal Point: Focal Point:
X: -0.0457618348300457 X: -0.021111639216542244
Y: -0.07058511674404144 Y: 0.01139180175960064
Z: 0.49734944105148315 Z: 0.23576684296131134
Focal Shape Fixed Size: true Focal Shape Fixed Size: true
Focal Shape Size: 0.05000000074505806 Focal Shape Size: 0.05000000074505806
Invert Z Axis: false Invert Z Axis: false
Name: Current View Name: Current View
Near Clip Distance: 0.009999999776482582 Near Clip Distance: 0.009999999776482582
Pitch: 0.15039828419685364 Pitch: 0.08039828389883041
Target Frame: <Fixed Frame> Target Frame: <Fixed Frame>
Value: Orbit (rviz) Value: Orbit (rviz)
Yaw: 0.5353983640670776 Yaw: 1.2653976678848267
Saved: ~ Saved: ~
Window Geometry: Window Geometry:
Displays: Displays:
collapsed: false collapsed: false
Height: 1379 Height: 1016
Hide Left Dock: false Hide Left Dock: false
Hide Right Dock: false Hide Right Dock: false
QMainWindow State: 000000ff00000000fd00000004000000000000016a000004f0fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000007901000003fb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c0061007900730100000048000004f00000010101000003fb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c000002610000000100000110000004f0fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a005600690065007700730100000048000004f0000000db01000003fb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000004420000003efc0100000002fb0000000800540069006d00650100000000000004420000000000000000fb0000000800540069006d0065010000000000000450000000000000000000000784000004f000000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 QMainWindow State: 000000ff00000000fd00000004000000000000016a000003a2fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003b000003a2000000c700fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c000002610000000100000110000003a2fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073010000003b000003a2000000a000fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000004420000003efc0100000002fb0000000800540069006d00650100000000000004420000000000000000fb0000000800540069006d00650100000000000004500000000000000000000004b4000003a200000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
Selection: Selection:
collapsed: false collapsed: false
Tool Properties: Tool Properties:
collapsed: false collapsed: false
Views: Views:
collapsed: false collapsed: false
Width: 2560 Width: 1850
X: 0 X: 70
Y: 30 Y: 27

View file

@ -4,6 +4,7 @@
<xacro:macro name="dh_ag95_gripper" <xacro:macro name="dh_ag95_gripper"
params=" params="
prefix prefix
grasp_link_offset:=0.19
parent parent
*origin" *origin"
> >
@ -279,6 +280,14 @@
<child link="${prefix}ag95_body" /> <child link="${prefix}ag95_body" />
</joint> </joint>
<link name="${prefix}grasp_link"/>
<joint name="${prefix}grasp_joint" type="fixed">
<parent link="${prefix}ag95_base_link" />
<child link="${prefix}grasp_link" />
<origin xyz="0.0 0.0 ${grasp_link_offset}" rpy="${pi/2} ${-pi/2} 0" />
</joint>
<!-- left finger --> <!-- left finger -->
<xacro:finger_links prefix="${prefix}" fingerprefix="left" /> <xacro:finger_links prefix="${prefix}" fingerprefix="left" />