-
Notifications
You must be signed in to change notification settings - Fork 12
/
PioneerRobotModels.world.inc
1535 lines (1325 loc) · 38.3 KB
/
PioneerRobotModels.world.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Stage model definitions for robots, sensors, etc.
#
#
#
# This file is loaded automatically by MobileSim to determine
# properties of models it creates; or it may be manually included
# into Stage world files.
#
# These settings are intended to represent typical values for the various
# models, but more importantly, agree with Aria's parameter files.
#
# Models form an inheritance tree. The base model for all robots is
# "pioneer". The models "laser", "ranger" (sonar) and "position" (movable
# robot base) are built in to Stage. To create a custom model definition,
# you can extend either the "pioneer" base model, or any existing model.
#
# Note, this file references laser "height". This feature has been removed
# from this version of MobileSim. It will be back. If you want to re-enable it,
# edit the laser model source code in Stage.
#
# The shape of a robot model is given via positions of vertices [x y] of one or more
# polygons. These polygon shapes are translated into the center of the model,
# then scaled to the given size (meters), before being rendered or used for colision
# tests. Therefore, the scale or coordinate system origin of the polygon
# vertices does not matter, as long as the vertices are positioned correctly
# relative to each other.
# The Y axis is vertical positive up, X axis horizontal, positive to
# the right. The front of the robot will be along the +X axis.
# Give vertices in connected order, clockwise.
#
# For example, the vertex space is a 1x1 unit square:
#
# Y
# ^ point 0 = (0.2, 0.8)
# | 1 = (0.7, 0.8)
#(0,1) (1,1) 2 = (0.8, 0.6)
# | 3 = (0.8, 0.4)
# | 0 ------- 1 4 = (0.7, 0.2)
# | / \ 5 = (0.2, 0.2)
# | 7 2 6 = (0.1, 0.4)
# | | | Front 7 = (0.1, 0.6)
# | 6 3
# | \ /
# | 5 ------- 4
# |
#(0,0)------------------(1,0)--> X
#
#
# However, for most models here, the units used in the polygon shape
# are real robot dimensions (meters or mm), and then the size is also
# the real robot size (meters).
#
#
#
# All units are in meters and radians, except ranger (sonar) position angle which is
# degrees.
#
# Common parameters to all pioneers
define pioneer position (
color "red"
drive "diff"
gui_nose 1 # Indicate the front.
gui_boundary 0 # Don't draw bounding box.
obstacle_return 1 # Can hit things.
laser_return 1 # Robot body seen by other lasers.
ranger_return 1 # Seen by other sonar.
blobfinder_return 1 # Seen by other blobfinders.
fiducial_return 2 # Seen as "2" by other fiducial sensors.
localization "odom" # Change to "gps" to have impossibly perfect, global odometry
localization_origin [0 0 0] # Start odometry at (0, 0, 0).
# Odometry error:
#
# There are two odometry error behaviors. If "random_init" mode is used,
# an odometry error or slip in X, Y and Theta is chosen randomly for each
# robot at startup within distribution ranges given in odom_error_range_x,
# odom_error_range_y, or odom_error_range_a, which is then added to reported
# odometry position estimate at each update as the robot moves, per meter.
# This is the only mode in MobileSim prior to 0.9. If "random_each_update"
# is used, a different random odometry error is chosen at each update.
# Error behavior mode can be specified by command line arguments.
# If "constant" is used, the values given in odom_error are just used.
# If "none" is used, no error is accumulated.
# The default may depend on compile time choices or build variant:
# random_init mode for compatibilty in the simbox or commercial variant, but
# is random_each_update in interactive developers MobileSim application.
#
# If odom_error_range_x, odom_error_range_y or odom_error_range_a are given,
# (new in 0.9) these will be used to give separate minimum and maximum
# limits to the random distribution in the random modes, allowing you to skew it
# in one directior or the other. Otherwise, odom_error
# can just be used for symetric error range. If constant error mode is used,
# and ranges are given, the median of the ranges are used, or odom_error is
# used if ranges are not given.
#
# Error values may also be specified at runtime which overrides these
# parameters.
#
# Units are meters error per meter and radians error per radian rotation.
# Default for all models:
odom_error [ 0.0075 0.0075 0.0075 ]
# example of asymetric:
#odom_error_x [ 0 0.01 ]
#odom_error_y [ -0.0075 0.0075 ]
#odom_error_a [ -0.004 0.009 ]
# Used for position control commands (MOVE, HEAD):
default_speed [1.5 0.0 1.3] # m(x), m(y), radians(theta)
# Maximum limits:
max_speed [2.0 0 1.74] # m(x), m(y), radians(theta)
# Acceleration:
accel [0.3 0 1.74] # m(x), m(y), radians(theta)
decel [0.6 0 1.74] # m(x), m(y), radians(theta)
# Conversion factors for sending/recieving over client protocol
pioneer_diffconv 0.0056
pioneer_distconv 1.0
pioneer_angleconv 0.001534
pioneer_vel2div 20
pioneer_velconv 1.0
pioneer_rangeconv 1.0
# Warn if no data received in this many ms. (Default is 2000 if omitted; 0 means to disable)
# Note that this does not freeze motion as the real robot does, just displays a warning.
#pioneer_watchdog 0
)
# SICK LMS-200 laser rangefinder configured for 32m range
define sicklms200 laser (
range_min 0.0
range_max 32.767
samples 181
fov 180.0
color "LightBlue"
size [0.155 0.15]
#height 0.195 # not used.
laser_beam_height 0.08 # approx, it actually can vary a few cm in reality. but not used.
laser_return 1
ranger_return 1
blobfinder_return 0
fiducial_return 0
noise 0.005 # Adds uniform random number to range value in [-0.005, 0.005] meters
reading_angle_error 0.0007 # Adds uniform random number to angle of sample in [-0.0007,0.0007] radians
# Rules for simulating some details of reflector detection:
laser_return_rules 3
# Change any reflector value greater than 1 into just 1, if it's more than 30
# meters away:
laser_return_rule[0].model_gt 1
laser_return_rule[0].condition "outside_range"
laser_return_rule[0].range 30
laser_return_rule[0].detect 1
# Change reflector values >1 into 1 if more than 90deg away:
laser_return_rule[1].model_gt 1
laser_return_rule[1].condition "outside_angle"
laser_return_rule[1].angle 90
laser_return_rule[1].detect 1
# Change the specific reflector value 2 into 33 (which is the actual value the
# real SICK returns to ARIA):
laser_return_rule[2].model_eq 2
laser_return_rule[2].detect 33
)
# SICK LMS-100 or LMS-111 laser configured for 1 degree resolution and 20 m
# range
define sicklms100 laser (
range_min 0.005
range_max 20
samples 271
fov 270.0
color "LightBlue"
size [0.1 0.1]
laser_return 1
ranger_return 1
blobfinder_return 0
fiducial_return 0
noise 0.0075 # Adds uniform random number to range value in [-0.0075, 0.0075] meters
reading_angle_error 0.0007 # Adds uniform random number to angle of sample in [-0.0007,0.0007] radians
)
# s300 laser
define sicks300 laser (
range_min 0.0
range_max 30.0
samples 540
fov 270.0
color "yellow"
size [0.102 0.105]
laser_return 1
ranger_return 1
blobfinder_return 0
fiducial_return 0
noise 0.006
reading_angle_error 0.0007
)
# tim3xx/510 laser
define sicktim510 laser (
range_min 0.05
range_max 4.0
samples 91
fov 270.0
color "LightBlue"
size [0.06 0.06]
laser_return 1
ranger_return 1
blobfinder_return 0
fiducial_return 0
noise 0.006
reading_angle_error 0.0007
)
# Sonar array
define pioneerSonar ranger (
sview [0.1 5.0 30] # min (m), max (m), field of view (deg)
ssize [0.01 0.04]
laser_return 0
blobfinder_return 0
fiducial_return 0
noise 0.0005 # sonar is pretty stable, actually
# If we use projection_type "single", then the sonar is modeled
# as a single ray projected from the center of the sonar positions.
projection_type "single"
# If we use projection_type "closest" then you can get slightly
# more complex sonar behavior, which can be tuned with these parameters:
#projection_type "closest"
#projection_res 6 # Test a sensor's field of view at a resolution of 6 degrees
#enable_throwaway 1
#throwaway_thresh 0.4 # Test range delta to consider throwing reading away
#throwaway_prob 0.8 # Probability of throwing a sensor reading away
# These values are used in the config packet sent back to the client. How many
# sonar sensors are simulated and their locations are specified separately
# with the scount and spose properties (see individual model definitions
# below).
pioneer_hasfrontarray 1
pioneer_hasreararray 1
# This parameter acts as a crude stand-in for the delayed timing of
# real sonar, which is not simulated -- the client program will recieve
# sonar values more slowly though the range data will not be old.
# Note, if this value is too large (and the robot has many many sonar),
# then an oversized packet will be sent, which could crash the client
# program.
#pioneer_max_readings_per_packet 4
)
# Example model based on pioneerSonar where only 8 front sonar
# sensors are present on a P3/2 DX, AT or PeopleBot.
define frontP3Sonar pioneerSonar (
pioneer_hasfrontarray 1
pioneer_hasreararray 0
scount 8
spose[0] [0.024 0.119 50]
spose[1] [0.058 0.078 30]
spose[2] [0.077 0.027 10]
spose[3] [0.077 -0.027 -10]
spose[4] [0.058 -0.078 -30]
spose[5] [0.024 -0.119 -50]
spose[6] [-0.02 -0.136 -90]
spose[7] [-0.191 -0.136 -90]
)
# Bumper array for DX (one half)
# For future use. Bumpers aren't implemented yet in MobileSim.
#define P3DXBumperRing bumpswitches (
# color "black"
# bumpcount 5
# bumpsize [0.100 0.015]
# bumppose[4] [0.23739 0 0]
# laser_return 0
# blobfinder_return 0
# fiducial_return 0
# ranger_return 0
# #height 0.06
#)
# Bumper array for AT (one half)
#define P3ATBumperRing bumpswitches (
# color "black"
# bumpcount 5
# bumpsize [0.100 0.015]
# bumppose[4] [0.23739 0 0]
# laser_return 0
# blobfinder_return 0
# fiducial_return 0
# ranger_return 0
# #height 0.06
#)
# Bumper array for PowerBot (one half)
#define powerbotBumperRing bumpswitches (
# color "black"
# bumpcount 5
# bumpsize [0.100 0.015]
# bumppose[4] [0.23739 0 0]
# laser_return 0
# blobfinder_return 0
# fiducial_return 0
# ranger_return 0
# #height 0.06
#)
# Bumper array for patrolbot (all)
#define patrolbotBumpers bumpswitches (
# color "grey"
# bumpcount 12
# bumpsize [0.090 0.010]
# bumppose[3] [0.27 0.045 0.175]
# laser_return 1
# blobfinder_return 0
# fiducial_return 0
# ranger_return 1
#)
# Model for an amigo without sonar
define amigo-nosonar pioneer (
pioneer_robot_subtype "amigo-nosonar"
# Speed profile:
max_speed [0.5 0 0.87]
accel [0.3 0 0.87]
decel [0.75 0 2.5]
# Body shape:
origin [-0.01 0.0 0.0]
size [0.33 0.279]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.1 0.165]
polygon[0].point[1] [0.1 0.165]
polygon[0].point[2] [0.1395 0.1]
polygon[0].point[3] [0.1395 -0.1]
polygon[0].point[4] [0.1 -0.165]
polygon[0].point[5] [-0.1 -0.165]
polygon[0].point[6] [-0.1395 -0.1]
polygon[0].point[7] [-0.1395 0.1]
polygon[0].filled 1
# height off floor:
#height 0.15 # Uncomment this to enable
# client conversion factors
pioneer_diffconv 0.011
pioneer_distconv 0.5083
pioneer_velconv 0.6154
pioneer_angleconv 0.001534
pioneer_vel2div 20
)
# Model for a amigo differential-drive robot base with sonar.
define amigo amigo-nosonar (
pioneer_robot_subtype "amigo"
# Add Sonar:
pioneerSonar (
scount 8
spose[0] [0.07 0.1 90]
spose[1] [0.12 0.075 41]
spose[2] [0.144 0.03 15]
spose[3] [0.144 -0.03 -15]
spose[4] [0.12 -0.075 -41]
spose[5] [0.07 -0.1 -90]
spose[6] [-0.146 -0.058 -145]
spose[7] [-0.146 0.058 145]
)
)
define amigo-sh amigo (
max_speed [0.75 0 0.87]
pioneer_robot_subtype "amigo-sh"
pioneer_diffconv 0.011
pioneer_distconv 1
pioneer_velconv 1
pioneer_angleconv 0.001534
pioneer_vel2div 20
)
define amigo-sh-tim3xx amigo-nosonar (
max_speed [0.75 0 0.87]
pioneer_robot_subtype "amigo-sh-tim3xx"
pioneer_diffconv 0.011
pioneer_distconv 1
pioneer_velconv 1
pioneer_angleconv 0.001534
pioneer_vel2div 20
sicktim510 (
pose [0.105 0 0]
)
)
# Model for a p2at differential-drive robot base with sonar.
define p2at pioneer (
pioneer_robot_subtype "p2at"
# Speed profile:
max_speed [0.75 0 1.74]
# Body shape:
size [0.626 0.505]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.313]
polygon[0].point[1] [0.12 0.313]
polygon[0].point[2] [0.2525 0.12]
polygon[0].point[3] [0.2525 -0.12]
polygon[0].point[4] [0.12 -0.313]
polygon[0].point[5] [-0.12 -0.313]
polygon[0].point[6] [-0.2525 -0.12]
polygon[0].point[7] [-0.2525 0.12]
polygon[0].filled 1
#height 0.27724 # Uncomment to enable
# client protocol conversion factors
pioneer_diffconv 0.0034
pioneer_distconv 1.32
pioneer_rangeconv 0.268
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.147 0.136 90]
spose[1] [0.193 0.119 50]
spose[2] [0.227 0.079 30]
spose[3] [0.245 0.027 10]
spose[4] [0.245 -0.027 -10]
spose[5] [0.227 -0.079 -30]
spose[6] [0.193 -0.119 -50]
spose[7] [0.147 -0.136 -90]
spose[8] [-0.144 -0.136 -90]
spose[9] [-0.189 -0.119 -130]
spose[10] [-0.223 -0.079 -150]
spose[11] [-0.241 -0.027 -170]
spose[12] [-0.241 0.027 170]
spose[13] [-0.223 0.079 150]
spose[14] [-0.189 0.119 130]
spose[15] [-0.144 0.136 90]
)
sicklms200( pose [0.16 0.007 0] )
)
# Model for a p2ce differential-drive robot base with sonar.
define p2ce pioneer (
pioneer_robot_subtype "p2ce"
# Speed profile:
max_speed [0.75 0 1.74]
# Body shape:
origin [-0.04465 0.0 0.0]
size [0.511 0.4]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.2555]
polygon[0].point[1] [0.12 0.2555]
polygon[0].point[2] [0.2 0.12]
polygon[0].point[3] [0.2 -0.12]
polygon[0].point[4] [0.12 -0.2555]
polygon[0].point[5] [-0.12 -0.2555]
polygon[0].point[6] [-0.2 -0.12]
polygon[0].point[7] [-0.2 0.12]
polygon[0].filled 1
# Height of top plate from floor (m):
#height 0.23711
# client protocol conversion factors
pioneer_diffconv 0.0057
pioneer_distconv 0.826
pioneer_rangeconv 0.268
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.069 0.136 90]
spose[1] [0.114 0.119 50]
spose[2] [0.148 0.078 30]
spose[3] [0.166 0.027 10]
spose[4] [0.166 -0.027 -10]
spose[5] [0.148 -0.078 -30]
spose[6] [0.114 -0.119 -50]
spose[7] [0.069 -0.136 -90]
spose[8] [-0.157 -0.136 -90]
spose[9] [-0.203 -0.119 -130]
spose[10] [-0.237 -0.078 -150]
spose[11] [-0.255 -0.027 -170]
spose[12] [-0.255 0.027 170]
spose[13] [-0.237 0.078 150]
spose[14] [-0.203 0.119 130]
spose[15] [-0.157 0.136 90]
)
sicklms200( pose [0 0 0] )
)
# Model for a p2d8 differential-drive robot base with sonar.
define p2d8 pioneer (
pioneer_robot_subtype "p2d8"
# Speed profile:
max_speed [0.75 0 1.74]
# Body shape:
origin [-0.04465 0.0 0.0]
size [0.511 0.4]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.2555]
polygon[0].point[1] [0.12 0.2555]
polygon[0].point[2] [0.2 0.12]
polygon[0].point[3] [0.2 -0.12]
polygon[0].point[4] [0.12 -0.2555]
polygon[0].point[5] [-0.12 -0.2555]
polygon[0].point[6] [-0.2 -0.12]
polygon[0].point[7] [-0.2 0.12]
polygon[0].filled 1
# Height of top plate from floor (m):
#height 0.23711
# client protocol conversion factors
# same as base pioneer model
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.069 0.136 90]
spose[1] [0.114 0.119 50]
spose[2] [0.148 0.078 30]
spose[3] [0.166 0.027 10]
spose[4] [0.166 -0.027 -10]
spose[5] [0.148 -0.078 -30]
spose[6] [0.114 -0.119 -50]
spose[7] [0.069 -0.136 -90]
spose[8] [-0.157 -0.136 -90]
spose[9] [-0.203 -0.119 -130]
spose[10] [-0.237 -0.078 -150]
spose[11] [-0.255 -0.027 -170]
spose[12] [-0.255 0.027 170]
spose[13] [-0.237 0.078 150]
spose[14] [-0.203 0.119 130]
spose[15] [-0.157 0.136 90]
)
sicklms200( pose [0.018 0 0] )
)
# Model for a p2de differential-drive robot base with sonar.
define p2de pioneer (
pioneer_robot_subtype "p2de"
# Speed profile:
max_speed [0.75 0 1.74]
# Body shape:
origin [-0.04465 0.0 0.0]
size [0.511 0.4]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.2555]
polygon[0].point[1] [0.12 0.2555]
polygon[0].point[2] [0.2 0.12]
polygon[0].point[3] [0.2 -0.12]
polygon[0].point[4] [0.12 -0.2555]
polygon[0].point[5] [-0.12 -0.2555]
polygon[0].point[6] [-0.2 -0.12]
polygon[0].point[7] [-0.2 0.12]
polygon[0].filled 1
#height 0.23711
# client protocol conversion factors
pioneer_rangeconv 0.268
pioneer_distconv 0.969
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.069 0.136 90]
spose[1] [0.114 0.119 50]
spose[2] [0.148 0.078 30]
spose[3] [0.166 0.027 10]
spose[4] [0.166 -0.027 -10]
spose[5] [0.148 -0.078 -30]
spose[6] [0.114 -0.119 -50]
spose[7] [0.069 -0.136 -90]
spose[8] [-0.157 -0.136 -90]
spose[9] [-0.203 -0.119 -130]
spose[10] [-0.237 -0.078 -150]
spose[11] [-0.255 -0.027 -170]
spose[12] [-0.255 0.027 170]
spose[13] [-0.237 0.078 150]
spose[14] [-0.203 0.119 130]
spose[15] [-0.157 0.136 90]
)
sicklms200( pose [0.017 0.008 0] )
)
# Model for a p3at differential-drive robot base with sonar but
# no laser. This is a base type for other p3at types with different
# laser options.
define p3at-nolaser pioneer (
pioneer_robot_subtype "p3at"
# Speed profile:
max_speed [0.6 0 0.75]
# Body shape:
size [0.626 0.505]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.18 0.313]
polygon[0].point[1] [0.18 0.313]
polygon[0].point[2] [0.2525 0.18]
polygon[0].point[3] [0.2525 -0.18]
polygon[0].point[4] [0.18 -0.313]
polygon[0].point[5] [-0.18 -0.313]
polygon[0].point[6] [-0.2525 -0.18]
polygon[0].point[7] [-0.2525 0.18]
polygon[0].filled 1
#height 0.27724
# client protocol conversion factors
pioneer_diffconv 0.0034
pioneer_distconv 0.465
pioneer_angleconv 0.001534
pioneer_velconv 1.0
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.147 0.136 90]
spose[1] [0.193 0.119 50]
spose[2] [0.227 0.079 30]
spose[3] [0.245 0.027 10]
spose[4] [0.245 -0.027 -10]
spose[5] [0.227 -0.079 -30]
spose[6] [0.193 -0.119 -50]
spose[7] [0.147 -0.136 -90]
spose[8] [-0.144 -0.136 -90]
spose[9] [-0.189 -0.119 -130]
spose[10] [-0.223 -0.079 -150]
spose[11] [-0.241 -0.027 -170]
spose[12] [-0.241 0.027 170]
spose[13] [-0.223 0.079 150]
spose[14] [-0.189 0.119 130]
spose[15] [-0.144 0.136 90]
)
pioneer_gps_pos_x -0.160
pioneer_gps_pos_y 0.120
)
# p3at and p3at-sh need to have LMS200 lasers for backwards compatibility.
# robots with other laser types are instead based on the -nolaser variants.
define p3at p3at-nolaser (
sicklms200( pose [0.125 0 0] )
)
define p3at-sh-nolaser p3at-nolaser (
pioneer_robot_subtype "p3at-sh"
pioneer_distconv 1.0
pioneer_diffconv 0.0034
pioneer_velconv 1.0
)
define p3at-sh p3at-sh-nolaser (
sicklms200( pose [0.125 0 0] )
)
define p3atiw p3at (
pioneer_robot_subtype "p3atiw"
size [0.626 0.49]
)
define p3atiw-sh p3at-sh (
pioneer_robot_subtype "p3atiw-sh"
size [0.626 0.49]
)
define p3at-sh-lms1xx p3at-sh-nolaser (
sicklms100( pose [0.125 0 0] )
)
define p3at-sh-lms500 p3at-sh-nolaser (
sicklms200( pose [0.125 0 0] )
)
# Model for a p3dx differential-drive robot base with sonar.
define p3dx-nolaser pioneer (
pioneer_robot_subtype "p3dx"
# Speed profile:
max_speed [1.0 0 1.74]
# Body shape:
origin [-0.04465 0.0 0.0]
size [0.511 0.4]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.2555]
polygon[0].point[1] [0.12 0.2555]
polygon[0].point[2] [0.2 0.12]
polygon[0].point[3] [0.2 -0.12]
polygon[0].point[4] [0.12 -0.2555]
polygon[0].point[5] [-0.12 -0.2555]
polygon[0].point[6] [-0.2 -0.12]
polygon[0].point[7] [-0.2 0.12]
polygon[0].filled 1
# Height of top plate from floor (m):
#height 0.23711
# client protocol conversion factors
pioneer_distconv 0.485
pioneer_diffconv 0.0056
pioneer_velconv 1.0
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.069 0.136 90]
spose[1] [0.114 0.119 50]
spose[2] [0.148 0.078 30]
spose[3] [0.166 0.027 10]
spose[4] [0.166 -0.027 -10]
spose[5] [0.148 -0.078 -30]
spose[6] [0.114 -0.119 -50]
spose[7] [0.069 -0.136 -90]
spose[8] [-0.157 -0.136 -90]
spose[9] [-0.203 -0.119 -130]
spose[10] [-0.237 -0.078 -150]
spose[11] [-0.255 -0.027 -170]
spose[12] [-0.255 0.027 170]
spose[13] [-0.237 0.078 150]
spose[14] [-0.203 0.119 130]
spose[15] [-0.157 0.136 90]
)
)
# p3dx and p3dx-sh need to have LMS200 lasers for backwards compatibility.
# robots with other laser types are instead based on the -nolaser variants.
define p3dx p3dx-nolaser (
sicklms200( pose [0 0 0] )
)
define p3dx-no-error p3dx (
odom_error [0 0 0]
)
define p3dx-big-rot-error p3dx (
odom_error [0.0075 0.0075 0.05]
)
define seekur-with-error seekur (
odom_error [0.01 0.01 0.05]
pioneer_gps_dop 0.8
)
define p3dx-big-x-error p3dx (
odom_error [0.01 0.0075 0.0075]
)
define p3dx-sh p3dx (
pioneer_robot_subtype "p3dx-sh"
pioneer_diffconv 0.0056
pioneer_distconv 1.0
)
define p3dx-sh-nolaser p3dx-nolaser (
pioneer_robot_subtype "p3dx-sh"
pioneer_diffconv 0.0056
pioneer_distconv 1.0
)
define p3dx-sh-lms1xx p3dx-sh-nolaser (
pioneer_robot_subtype "p3dx-sh-lms1xx"
sicklms100( pose [0.055 0 0] )
)
define p3dx-sh-lms500 p3dx-sh-nolaser (
pioneer_robot_subtype "p3dx-sh-lms500"
sicklms200( pose [0.021 0 0] )
)
define p3dx-sh-lms200 p3dx-sh-nolaser (
sicklms200( pose [0.021 0 0] )
)
define p3dx-with-rear-laser p3dx (
sicklms200(pose [-0.155 0 180])
)
# Model for a patrolbot differential-drive robot base with sonar.
define patrolbot-sh pioneer (
color "grey"
pioneer_robot_subtype "patrolbot-sh"
# Speed profile:
max_speed [2.0 0 3.49]
# Body shape:
size [0.521 0.435]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.13 0.2605]
polygon[0].point[1] [0.13 0.2605]
polygon[0].point[2] [0.2175 0.13]
polygon[0].point[3] [0.2175 -0.13]
polygon[0].point[4] [0.13 -0.2605]
polygon[0].point[5] [-0.13 -0.2605]
polygon[0].point[6] [-0.2175 -0.13]
polygon[0].point[7] [-0.2175 0.13]
polygon[0].filled 1
#height 0.38
# client protocol conversion factors
pioneer_diffconv 0.0056
pioneer_distconv 1.0
pioneer_angleconv 0.001534
# Sonar:
pioneerSonar (
scount 16
spose[0] [0.083 0.229 90]
spose[1] [0.169 0.202 55]
spose[2] [0.232 0.134 30]
spose[3] [0.263 0.046 10]
spose[4] [0.263 -0.046 -10]
spose[5] [0.232 -0.134 -30]
spose[6] [0.169 -0.202 -55]
spose[7] [0.083 -0.229 -90]
spose[8] [-0.083 -0.229 -90]
spose[9] [-0.169 -0.202 -125]
spose[10] [-0.232 -0.134 -150]
spose[11] [-0.263 -0.046 -170]
spose[12] [-0.263 0.046 170]
spose[13] [-0.232 0.134 150]
spose[14] [-0.169 0.202 125]
spose[15] [-0.083 0.229 90]
)
sicklms200(
pose [0.037 0 0]
# Mounted upside down, inside the body:
reverse_scan 1
laser_beam_height 0.115
height_offset -0.20
)
)
define patrolbot patrolbot-sh (
# lets us say patrolbot as shorthand for patrolbot-sh
)
define mt400 patrolbot-sh (
# It's similar to the older patrolbot-sh but with different batteries and
# correct speed limits thta match firmware config
pioneer_robot_subtype "mt400"
pioneer_batterytype 2
max_speed [2.2 0 8.72]
)
define mt400-500 mt400 (
pioneer_batterytype 2
)
define mt400-600 mt400 (
pioneer_batterytype 0
)
define mt400-260 mt400 (
pioneer_batterytype 2
)
define mt400-261 mt400 (
pioneer_batterytype 0
)
define researchPB mt400-600 (
pioneer_robot_subtype "researchPB"
)
define research-patrolbot researchPB (
# More descriptive name
)
# Model for a peoplebot differential-drive robot base with sonar.
define peoplebot-sh pioneer (
pioneer_robot_subtype "peoplebot-sh"
color "grey"
# Speed profile:
max_speed [0.75 0 1.74]
# Body shape:
origin [-0.04465 0.0 0.0]
size [0.513 0.425]
polygons 1
polygon[0].points 8
polygon[0].point[0] [-0.12 0.2565]
polygon[0].point[1] [0.12 0.2565]
polygon[0].point[2] [0.2 0.12]
polygon[0].point[3] [0.2 -0.12]
polygon[0].point[4] [0.12 -0.2565]
polygon[0].point[5] [-0.12 -0.2565]
polygon[0].point[6] [-0.2 -0.12]
polygon[0].point[7] [-0.2 0.12]
polygon[0].filled 1
# height of upper top plate from floor:
#height 1.115
# client protocol conversion factors
pioneer_diffconv 0.006
pioneer_distconv 1.0
pioneer_angleconv 0.001534
# Sonar:
pioneerSonar (
scount 24
spose[0] [0.069 0.136 90]
spose[1] [0.114 0.119 50]
spose[2] [0.148 0.078 30]
spose[3] [0.166 0.027 10]
spose[4] [0.166 -0.027 -10]
spose[5] [0.148 -0.078 -30]
spose[6] [0.114 -0.119 -50]
spose[7] [0.069 -0.136 -90]
spose[8] [-0.157 -0.136 -90]
spose[9] [-0.203 -0.119 -130]
spose[10] [-0.237 -0.078 -150]
spose[11] [-0.255 -0.027 -170]
spose[12] [-0.255 0.027 170]
spose[13] [-0.237 0.078 150]
spose[14] [-0.203 0.119 130]
spose[15] [-0.157 0.136 90]
spose[16] [-0.02 0.136 90]
# Top sonar ring, same as bottom front in the 2D stage simulation:
spose[17] [0.024 0.119 50]
spose[18] [0.058 0.078 30]
spose[19] [0.077 0.027 10]
spose[20] [0.077 -0.027 -10]
spose[21] [0.058 -0.078 -30]
spose[22] [0.024 -0.119 -50]
spose[23] [-0.02 -0.136 -90]
spose[24] [-0.191 -0.136 -90]
)
sicklms200( pose [0.021 0 0] )
)
# just another name for peoplebot-sh:
define peoplebot peoplebot-sh (
)
# Model for a pion1x differential-drive robot base with sonar.
define pion1x pioneer (
pioneer_robot_subtype "pion1x"
color "blue"