java_autopilot.json 7.02 KB
Newer Older
Jean Meurice's avatar
Jean Meurice committed
1
2
3
4
5
6
{
    "name": "new_basic",
    "map_name": "aachen",
    "cars": [
        {
            "name": "TestVehicle",
Jean Meurice's avatar
Jean Meurice committed
7
8
9
10
11
12
13
14
            "start_coords": [
                0,
                0
            ],
            "end_coords": [
                -63.83,
                -171.96
            ],
Jean Meurice's avatar
Jean Meurice committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
            "body": {
                "mass": 1642.0,
                "length": 4.971,
                "width": 1.87,
                "height": 1.383,
                "center_of_gravity_height": 0.34575
            },
            "wheels": {
                "diameter": 0.6612,
                "width": 0.255,
                "front_wheel_axis_offset": 1.0,
                "max_turning_angle": 30.0,
                "front_track_width": 1.57988,
                "back_track_dist": 1.60274,
                "wheelbase": 2.812,
                "wheelbase_offset": 0.0
            },
            "powertrain": {
                "type": "electrical",
                "traction": "rear",
                "braking": "front",
                "max_braking_force": 5000.0,
                "motor": {
Jean Meurice's avatar
Jean Meurice committed
38
39
40
                    "motor_efficiency": 0.7,
                    "regen_efficiency": 0.5,
                    "motor_peek_torque": 450.0
Jean Meurice's avatar
Jean Meurice committed
41
42
                },
                "battery": {
Jean Meurice's avatar
Jean Meurice committed
43
44
45
                    "type": "infinite",
                    "capacity": 1.8E8,
                    "critical_charge": 10.0
Jean Meurice's avatar
Jean Meurice committed
46
47
48
49
50
51
52
53
                },
                "transmission_ratio": 9.0
            },
            "physics": {
                "type": "rigidbody"
            },
            "components": [
                {
Jean Meurice's avatar
Jean Meurice committed
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
                    "type": "actuator",
                    "name": "SteeringActuator",
                    "priority": {},
                    "buses": [
                        "DefaultBus"
                    ],
                    "physical_value_name": "steering",
                    "change_rate": 60.0,
                    "sensor": {
                        "type": "sensor",
                        "name": "UnnamedComponent",
                        "priority": {},
                        "buses": [
                            "DefaultBus"
                        ],
                        "update_interval": [
                            0,
                            100000000
                        ],
                        "read_time": [
                            0,
                            1000000
                        ],
                        "send_only_changed": false
                    }
                },
                {
                    "type": "actuator",
                    "name": "BrakingActuator",
                    "priority": {},
                    "buses": [
                        "DefaultBus"
                    ],
                    "physical_value_name": "braking",
                    "change_rate": 10.0,
                    "sensor": {
                        "type": "sensor",
                        "name": "UnnamedComponent",
                        "priority": {},
                        "buses": [
                            "DefaultBus"
                        ],
                        "update_interval": [
                            0,
                            100000000
                        ],
                        "read_time": [
                            0,
                            1000000
                        ],
                        "send_only_changed": false
                    }
                },
                {
                    "type": "actuator",
                    "name": "GasActuator",
                    "priority": {},
                    "buses": [
                        "DefaultBus"
                    ],
                    "physical_value_name": "gas",
                    "change_rate": "Infinity",
                    "sensor": {
                        "type": "sensor",
                        "name": "UnnamedComponent",
                        "priority": {},
                        "buses": [
                            "DefaultBus"
                        ],
                        "update_interval": [
                            0,
                            100000000
                        ],
                        "read_time": [
                            0,
                            1000000
                        ],
                        "send_only_changed": false
                    }
                },
                {
Jean Meurice's avatar
Jean Meurice committed
135
                    "type": "sensor",
Jean Meurice's avatar
Jean Meurice committed
136
                    "name": "TrueVelocitySensor",
Jean Meurice's avatar
Jean Meurice committed
137
138
                    "priority": {},
                    "buses": [
Jean Meurice's avatar
Jean Meurice committed
139
                        "DefaultBus"
Jean Meurice's avatar
Jean Meurice committed
140
                    ],
Jean Meurice's avatar
Jean Meurice committed
141
                    "physical_value_name": "true_velocity",
Jean Meurice's avatar
Jean Meurice committed
142
                    "update_interval": [
Jean Meurice's avatar
Jean Meurice committed
143
144
                        0,
                        100000000
Jean Meurice's avatar
Jean Meurice committed
145
146
                    ],
                    "read_time": [
Jean Meurice's avatar
Jean Meurice committed
147
148
                        0,
                        10000000
Jean Meurice's avatar
Jean Meurice committed
149
150
151
152
153
                    ],
                    "send_only_changed": false
                },
                {
                    "type": "sensor",
Jean Meurice's avatar
Jean Meurice committed
154
                    "name": "TruePositionSensor",
Jean Meurice's avatar
Jean Meurice committed
155
156
                    "priority": {},
                    "buses": [
Jean Meurice's avatar
Jean Meurice committed
157
                        "DefaultBus"
Jean Meurice's avatar
Jean Meurice committed
158
                    ],
Jean Meurice's avatar
Jean Meurice committed
159
                    "physical_value_name": "true_position",
Jean Meurice's avatar
Jean Meurice committed
160
                    "update_interval": [
Jean Meurice's avatar
Jean Meurice committed
161
162
                        0,
                        100000000
Jean Meurice's avatar
Jean Meurice committed
163
164
                    ],
                    "read_time": [
Jean Meurice's avatar
Jean Meurice committed
165
166
                        0,
                        10000000
Jean Meurice's avatar
Jean Meurice committed
167
168
169
170
171
                    ],
                    "send_only_changed": false
                },
                {
                    "type": "sensor",
Jean Meurice's avatar
Jean Meurice committed
172
                    "name": "TrueCompassSensor",
Jean Meurice's avatar
Jean Meurice committed
173
174
                    "priority": {},
                    "buses": [
Jean Meurice's avatar
Jean Meurice committed
175
                        "DefaultBus"
Jean Meurice's avatar
Jean Meurice committed
176
                    ],
Jean Meurice's avatar
Jean Meurice committed
177
                    "physical_value_name": "true_compass",
Jean Meurice's avatar
Jean Meurice committed
178
                    "update_interval": [
Jean Meurice's avatar
Jean Meurice committed
179
180
                        0,
                        100000000
Jean Meurice's avatar
Jean Meurice committed
181
182
                    ],
                    "read_time": [
Jean Meurice's avatar
Jean Meurice committed
183
184
                        0,
                        10000000
Jean Meurice's avatar
Jean Meurice committed
185
186
187
188
                    ],
                    "send_only_changed": false
                },
                {
Jean Meurice's avatar
Jean Meurice committed
189
190
191
192
193
194
                    "type": "navigation",
                    "name": "Navigation",
                    "priority": {},
                    "buses": [
                        "DefaultBus"
                    ]
Jean Meurice's avatar
Jean Meurice committed
195
196
                },
                {
Jean Meurice's avatar
Jean Meurice committed
197
198
199
200
201
                    "type": "constant_bus",
                    "name": "DefaultBus",
                    "priority": {},
                    "mode": "instant",
                    "rate": 0.0
Jean Meurice's avatar
Jean Meurice committed
202
203
                },
                {
Jean Meurice's avatar
Jean Meurice committed
204
205
206
207
208
209
210
211
212
213
214
                    "type": "java_autopilot",
                    "name": "TestAutopilot",
                    "priority": {},
                    "buses": [
                        "DefaultBus"
                    ],
                    "compute_time": [
                        0,
                        0
                    ],
                    "maxVehicleAccel": 7.460690450979396
Jean Meurice's avatar
Jean Meurice committed
215
216
217
218
219
                }
            ]
        }
    ]
}