Skip to content

Commit fbed374

Browse files
committed
更新pro 600 URDF模型初始姿态
1 parent fbd15bc commit fbed374

File tree

4 files changed

+38
-28
lines changed

4 files changed

+38
-28
lines changed

demo_img/pro600/pro600.png

-9.14 KB
Loading

mycobot_description/urdf/mycobot_pro_600/mycobot_pro_600.urdf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@
143143

144144
<joint name="joint3_to_joint2" type="revolute">
145145
<axis xyz="0 0 -1"/>
146-
<limit effort = "1000.0" lower = "-4.71" upper = "1.5708" velocity = "0"/>
147-
<!-- <limit effort = "1000.0" lower = "-3.14" upper = "3.14" velocity = "0"/> -->
146+
<!-- <limit effort = "1000.0" lower = "-4.71" upper = "1.5708" velocity = "0"/> -->
147+
<limit effort = "1000.0" lower = "-3.14159" upper = "3.14159" velocity = "0"/>
148148
<parent link="link1"/>
149149
<child link="link2"/>
150-
<!-- <origin xyz= "0 0 0" rpy = "1.5708 -1.5708 0"/> -->
151-
<origin xyz= "0 0 0" rpy = "1.5708 0 0"/>
150+
<origin xyz= "0 0 0" rpy = "1.5708 -1.5708 0"/>
151+
<!-- <origin xyz= "0 0 0" rpy = "1.5708 0 0"/> -->
152152
</joint>
153153

154154

@@ -162,12 +162,12 @@
162162

163163
<joint name="joint5_to_joint4" type="revolute">
164164
<axis xyz=" 0 0 -1"/>
165-
<limit effort = "1000.0" lower = "-4.53" upper = "1.3962" velocity = "0"/>
166-
<!-- <limit effort = "1000.0" lower = "-2.96" upper = "2.97" velocity = "0"/> -->
165+
<!-- <limit effort = "1000.0" lower = "-4.53" upper = "1.3962" velocity = "0"/> -->
166+
<limit effort = "1000.0" lower = "-2.9670" upper = "2.9670" velocity = "0"/>
167167
<parent link="link3"/>
168168
<child link="link4"/>
169-
<!-- <origin xyz= "0.25 0 -0.1091" rpy = "0 0 1.5708"/> -->
170-
<origin xyz= "0.25 0 -0.1091" rpy = "0 0 0"/>
169+
<origin xyz= "0.25 0 -0.1091" rpy = "0 0 1.5708"/>
170+
<!-- <origin xyz= "0.25 0 -0.1091" rpy = "0 0 0"/> -->
171171
</joint>
172172

173173
<joint name="joint6_to_joint5" type="revolute">

mycobot_pro/mycobot_600/config/mycobot_600.rviz

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Panels:
99
- /RobotModel1
1010
- /TF1
1111
Splitter Ratio: 0.5
12-
Tree Height: 775
12+
Tree Height: 609
1313
- Class: rviz/Selection
1414
Name: Selection
1515
- Class: rviz/Tool Properties
@@ -18,17 +18,18 @@ Panels:
1818
- /2D Nav Goal1
1919
- /Publish Point1
2020
Name: Tool Properties
21-
Splitter Ratio: 0.588679016
21+
Splitter Ratio: 0.5886790156364441
2222
- Class: rviz/Views
2323
Expanded:
2424
- /Current View1
2525
Name: Views
2626
Splitter Ratio: 0.5
2727
- Class: rviz/Time
28-
Experimental: false
2928
Name: Time
3029
SyncMode: 0
3130
SyncSource: ""
31+
Preferences:
32+
PromptSaveOnExit: true
3233
Toolbars:
3334
toolButtonStyle: 2
3435
Visualization Manager:
@@ -40,7 +41,7 @@ Visualization Manager:
4041
Color: 160; 160; 164
4142
Enabled: true
4243
Line Style:
43-
Line Width: 0.0299999993
44+
Line Width: 0.029999999329447746
4445
Value: Lines
4546
Name: Grid
4647
Normal Cell Count: 0
@@ -105,6 +106,8 @@ Visualization Manager:
105106
Visual Enabled: true
106107
- Class: rviz/TF
107108
Enabled: true
109+
Filter (blacklist): ""
110+
Filter (whitelist): ""
108111
Frame Timeout: 15
109112
Frames:
110113
All Enabled: true
@@ -122,7 +125,8 @@ Visualization Manager:
122125
Value: true
123126
link6:
124127
Value: true
125-
Marker Scale: 0.300000012
128+
Marker Alpha: 1
129+
Marker Scale: 0.20000000298023224
126130
Name: TF
127131
Show Arrows: true
128132
Show Axes: true
@@ -153,7 +157,10 @@ Visualization Manager:
153157
- Class: rviz/FocusCamera
154158
- Class: rviz/Measure
155159
- Class: rviz/SetInitialPose
160+
Theta std deviation: 0.2617993950843811
156161
Topic: /initialpose
162+
X std deviation: 0.5
163+
Y std deviation: 0.5
157164
- Class: rviz/SetGoal
158165
Topic: /move_base_simple/goal
159166
- Class: rviz/PublishPoint
@@ -163,33 +170,33 @@ Visualization Manager:
163170
Views:
164171
Current:
165172
Class: rviz/Orbit
166-
Distance: 2.0593462
173+
Distance: 2.0004639625549316
167174
Enable Stereo Rendering:
168-
Stereo Eye Separation: 0.0599999987
175+
Stereo Eye Separation: 0.05999999865889549
169176
Stereo Focal Distance: 1
170177
Swap Stereo Eyes: false
171178
Value: false
179+
Field of View: 0.7853981852531433
172180
Focal Point:
173-
X: -0.0706475973
174-
Y: -0.0814988762
175-
Z: 0.107583851
181+
X: -0.07064759731292725
182+
Y: -0.0814988762140274
183+
Z: 0.10758385062217712
176184
Focal Shape Fixed Size: true
177-
Focal Shape Size: 0.0500000007
185+
Focal Shape Size: 0.05000000074505806
178186
Invert Z Axis: false
179187
Name: Current View
180-
Near Clip Distance: 0.00999999978
181-
Pitch: 0.660398126
188+
Near Clip Distance: 0.009999999776482582
189+
Pitch: 0.45539799332618713
182190
Target Frame: <Fixed Frame>
183-
Value: Orbit (rviz)
184-
Yaw: 3.10539246
191+
Yaw: 2.6153931617736816
185192
Saved: ~
186193
Window Geometry:
187194
Displays:
188195
collapsed: false
189-
Height: 1056
196+
Height: 906
190197
Hide Left Dock: false
191198
Hide Right Dock: false
192-
QMainWindow State: 000000ff00000000fd00000004000000000000016a00000396fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000006100fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000002800000396000000d700fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261000000010000022f00000396fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073010000002800000396000000ad00fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e100000197000000030000073f0000003efc0100000002fb0000000800540069006d006501000000000000073f0000030000fffffffb0000000800540069006d006501000000000000045000000000000000000000039a0000039600000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
199+
QMainWindow State: 000000ff00000000fd00000004000000000000016a000002ecfc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003d000002ec000000c900fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261000000010000022f000002ecfc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073010000003d000002ec000000a400fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000007380000003efc0100000002fb0000000800540069006d0065010000000000000738000003bc00fffffffb0000000800540069006d0065010000000000000450000000000000000000000393000002ec00000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
193200
Selection:
194201
collapsed: false
195202
Time:
@@ -198,6 +205,6 @@ Window Geometry:
198205
collapsed: false
199206
Views:
200207
collapsed: false
201-
Width: 1855
202-
X: 65
203-
Y: 24
208+
Width: 1848
209+
X: 72
210+
Y: 27

mycobot_pro/mycobot_600/scripts/slider_600.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def callback(data):
2222
radians_to_angles = round(math.degrees(value), 2)
2323
data_list.append(radians_to_angles)
2424

25+
data_list[1] = data_list[1] - 90
26+
data_list[3] = data_list[3] - 90
27+
2528
rospy.loginfo(rospy.get_caller_id() + "%s", data_list)
2629
mc.write_angles(data_list, 1000)
2730

0 commit comments

Comments
 (0)