Skip to content

Commit 793a6e2

Browse files
authored
Better reload/reset table (cyberbotics#5900)
* Update supervisor.md * Update supervisor.md * Update supervisor.md * Added missing text-align:center * Added column separator in header, vertical centering * Update supervisor.md * Update supervisor.md * Update supervisor.md * Update supervisor.md * Update webots-doc.css
1 parent fd863ce commit 793a6e2

2 files changed

Lines changed: 60 additions & 110 deletions

File tree

docs/css/webots-doc.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ body {
463463
width: 100%;
464464
}
465465
.webots-doc #view table th {
466+
padding: 6px;
466467
border-width: 1px;
467468
border-style: solid;
468469
border-color: #ddd;

docs/reference/supervisor.md

Lines changed: 59 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,211 +2443,160 @@ The following table summarizes the behavior of different reset functions:
24432443
<table>
24442444
<thead>
24452445
<tr>
2446-
<th></th>
2447-
<th><strong>Reload</strong></th>
2448-
<th><strong>Reset from user interface</strong></th>
2449-
<th><strong>Reset from Supervisor</strong></th>
2450-
<th><strong>Load node&#39;s state from Supervisor</strong></th>
2451-
<th><strong>Reset physics</strong></th>
2452-
<th><strong>Reset node&#39;s physics</strong></th>
2446+
<th style="border-color:#aaa"></th>
2447+
<th style="border-color:#aaa"><strong>Reload</strong></th>
2448+
<th style="border-color:#aaa"><strong>Reset from user interface</strong></th>
2449+
<th style="border-color:#aaa"><strong>Reset from Supervisor</strong></th>
2450+
<th style="border-color:#aaa"><strong>Load node&#39;s state from Supervisor</strong></th>
2451+
<th style="border-color:#aaa"><strong>Reset physics</strong></th>
2452+
<th style="border-color:#aaa"><strong>Reset node&#39;s physics</strong></th>
24532453
</tr>
24542454
</thead>
24552455
<tbody>
24562456
<tr>
24572457
<td><strong>Resets simulation time</strong></td>
2458-
<td>Yes</td>
2459-
<td>Yes</td>
2460-
<td>Yes</td>
2461-
<td>No</td>
2462-
<td>No</td>
2463-
<td>No</td>
2458+
<td colspan=3 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2459+
<td colspan=3 style="background-color:#fee;text-align:center;vertical-align:middle">No</td>
24642460
</tr>
24652461
<tr>
24662462
<td><strong>Removes nodes</strong></td>
2467-
<td>Yes</td>
2468-
<td>Yes</td>
2469-
<td>Yes</td>
2470-
<td>No</td>
2471-
<td>No</td>
2472-
<td>No</td>
2463+
<td colspan=3 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2464+
<td colspan=3 style="background-color:#fee;text-align:center;vertical-align:middle">No</td>
24732465
</tr>
24742466
<tr>
24752467
<td><strong>Restarts controller</strong></td>
2476-
<td>Yes</td>
2477-
<td>Yes</td>
2478-
<td>No</td>
2479-
<td>No</td>
2480-
<td>No</td>
2481-
<td>No</td>
2468+
<td colspan=2 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2469+
<td colspan=4 style="background-color:#fee;text-align:center;vertical-align:middle">No</td>
24822470
</tr>
24832471
<tr>
24842472
<td><strong>Stops sounds</strong></td>
2485-
<td>Yes</td>
2486-
<td>Yes</td>
2487-
<td>Yes</td>
2488-
<td>No</td>
2489-
<td>No</td>
2490-
<td>No</td>
2473+
<td colspan=3 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2474+
<td colspan=3 style="background-color:#fee;text-align:center;vertical-align:middle">No</td>
24912475
</tr>
24922476
<tr>
24932477
<td><strong>Resets random seeds</strong></td>
2494-
<td>Yes</td>
2495-
<td>Yes</td>
2496-
<td>Yes</td>
2497-
<td>No</td>
2498-
<td>No</td>
2499-
<td>No</td>
2478+
<td colspan=3 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2479+
<td colspan=3 style="background-color:#fee;text-align:center;vertical-align:middle">No</td>
25002480
</tr>
25012481
<tr>
25022482
<td><strong>Resets physics</strong></td>
2503-
<td>Yes</td>
2504-
<td>Yes</td>
2505-
<td>Yes</td>
2506-
<td>Yes (scoped)</td>
2507-
<td>Yes</td>
2508-
<td>Yes (scoped)</td>
2483+
<td colspan=3 style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2484+
<td style="background-color:#ffe;text-align:center;vertical-align:middle">Yes (scoped)</td>
2485+
<td style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2486+
<td style="background-color:#ffe;text-align:center;vertical-align:middle">Yes (scoped)</td>
25092487
</tr>
25102488
<tr>
25112489
<td><strong>Resets physics plugin</strong></td>
2512-
<td>Yes</td>
2513-
<td>Yes</td>
2514-
<td>Yes</td>
2515-
<td>No</td>
2516-
<td>No</td>
2517-
<td>No</td>
2490+
<td style="background-color:#efe;text-align:center;vertical-align:middle" colspan=3>Yes</td>
2491+
<td style="background-color:#fee;text-align:center;vertical-align:middle" colspan=3>No</td>
25182492
</tr>
25192493
<tr>
25202494
<td><strong>Resets all fields</strong></td>
2521-
<td>Yes</td>
2522-
<td>No</td>
2523-
<td>No</td>
2524-
<td>No</td>
2525-
<td>No</td>
2526-
<td>No</td>
2495+
<td style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2496+
<td style="background-color:#fee;text-align:center;vertical-align:middle" colspan=5>No</td>
25272497
</tr>
25282498
<tr>
25292499
<td><strong>Adds removed nodes</strong></td>
2530-
<td>Yes</td>
2531-
<td>No</td>
2532-
<td>No</td>
2533-
<td>No</td>
2534-
<td>No</td>
2535-
<td>No</td>
2500+
<td style="background-color:#efe;text-align:center;vertical-align:middle">Yes</td>
2501+
<td style="background-color:#fee;text-align:center;vertical-align:middle" colspan=5>No</td>
25362502
</tr>
25372503
<tr>
25382504
<td><strong><a href="brake.md">Brake</a></strong></td>
2539-
<td>Resets</td>
2540-
<td>Releases</td>
2541-
<td>Releases</td>
2542-
<td>Releases</td>
2543-
<td>N/A</td>
2544-
<td>N/A</td>
2505+
<td style="text-align:center;vertical-align:middle">Resets</td>
2506+
<td style="text-align:center;vertical-align:middle" colspan=3>Releases</td>
2507+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25452508
</tr>
25462509
<tr>
25472510
<td><strong><a href="charger.md">Charger</a></strong></td>
2548-
<td>Resets</td>
2511+
<td style="text-align:center;vertical-align:middle">Resets</td>
25492512
<td colspan=2>Resets the <code>battery</code> field and the <code>emissiveColor</code> field of the <a
25502513
href="material.md">Material</a> node of the first <a href="shape.md">Shape</a> child node</td>
25512514
<td>Loads the <code>battery</code> field and resets the emissiveColor field of the <a
25522515
href="material.md">Material</a> node of the first <a href="shape.md">Shape</a> child node</td>
2553-
<td>N/A</td>
2554-
<td>N/A</td>
2516+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25552517
</tr>
25562518
<tr>
25572519
<td><strong><a href="display.md">Display</a></strong></td>
2558-
<td>Resets</td>
2559-
<td>Clears</td>
2560-
<td>Clears</td>
2561-
<td>Clears</td>
2562-
<td>N/A</td>
2563-
<td>N/A</td>
2520+
<td style="text-align:center;vertical-align:middle">Resets</td>
2521+
<td style="text-align:center;vertical-align:middle" colspan=3>Clears</td>
2522+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25642523
</tr>
25652524
<tr>
25662525
<td><strong><a href="emitter.md">Emitter</a>/<a href="receiver.md">Receiver</a></strong></td>
2567-
<td>Resets</td>
2568-
<td colspan=3>Clears the message queue</td>
2569-
<td>N/A</td>
2570-
<td>N/A</td>
2526+
<td style="text-align:center;vertical-align:middle">Resets</td>
2527+
<td style="text-align:center;vertical-align:middle" colspan=3>Clears the message queue</td>
2528+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25712529
</tr>
25722530
<tr>
25732531
<td><strong><a href="joint.md">Joint</a>/<a href="motor.md">Motor</a></strong></td>
2574-
<td>Resets</td>
2532+
<td style="text-align:center;vertical-align:middle">Resets</td>
25752533
<td colspan=2>Resets the position, velocity, acceleration, available torque, and available force</td>
25762534
<td>Loads the position, resets the velocity, acceleration, available torque, and available force</td>
2577-
<td>N/A</td>
2578-
<td>N/A</td>
2535+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25792536
</tr>
25802537
<tr>
25812538
<td><strong><a href="led.md">LED</a></strong></td>
2582-
<td>Resets</td>
2539+
<td style="text-align:center;vertical-align:middle">Resets</td>
25832540
<td colspan=3>If the first child is a Light node, it resets the <code>color</code> field and it switches the LED off.
25842541
If the first child is a <a href="shape.md">Shape</a> node, it resets the <code>emissiveColor</code>
25852542
field of its <a href="material.md">Material</a> node.</td>
2586-
<td>N/A</td>
2587-
<td>N/A</td>
2543+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25882544
</tr>
25892545
<tr>
25902546
<td><strong><a href="lidar.md">Lidar</a></strong></td>
2591-
<td>Resets</td>
2592-
<td colspan=3>Resets the position of the rotating head</td>
2593-
<td>N/A</td>
2594-
<td>N/A</td>
2547+
<td style="text-align:center;vertical-align:middle">Resets</td>
2548+
<td style="text-align:center;vertical-align:middle" colspan=3>Resets the position of the rotating head</td>
2549+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
25952550
</tr>
25962551
<tr>
25972552
<td><strong><a href="pen.md">Pen</a></strong></td>
2598-
<td>Resets</td>
2599-
<td colspan=3>Cleans the painted textures</td>
2600-
<td>N/A</td>
2601-
<td>N/A</td>
2553+
<td style="text-align:center;vertical-align:middle">Resets</td>
2554+
<td style="text-align:center;vertical-align:middle" colspan=3>Cleans the painted textures</td>
2555+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26022556
</tr>
26032557
<tr>
26042558
<td><strong><a href="propeller.md">Propeller</a></strong></td>
2605-
<td>Resets</td>
2606-
<td colspan=3>Resets the slow helix and it&#39;s initial position</td>
2607-
<td>N/A</td>
2608-
<td>N/A</td>
2559+
<td style="text-align:center;vertical-align:middle">Resets</td>
2560+
<td style="text-align:center;vertical-align:middle" colspan=3>Resets the slow helix and it&#39;s initial position</td>
2561+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26092562
</tr>
26102563
<tr>
26112564
<td><strong><a href="robot.md">Robot</a></strong></td>
2612-
<td>Resets</td>
2565+
<td style="text-align:center;vertical-align:middle">Resets</td>
26132566
<td colspan=2>Resets the <code>battery</code> field, removes all the supervisor labels, resets the nodes visibility,
26142567
and restarts the controller</td>
26152568
<td>Loads the <code>battery</code> field, removes all the supervisor labels, and resets the nodes visibility
26162569
</td>
2617-
<td>N/A</td>
2618-
<td>N/A</td>
2570+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26192571
</tr>
26202572
<tr>
26212573
<td><strong><a href="solid.md">Solid</a></strong></td>
2622-
<td>Resets</td>
2574+
<td style="text-align:center;vertical-align:middle">Resets</td>
26232575
<td colspan=2>Resets the <code>translation</code> and <code>rotation</code> fields, and the physics</td>
26242576
<td>Loads the <code>translation</code> and <code>rotation</code> fields, and resets the physics</td>
2625-
<td>N/A</td>
2626-
<td>N/A</td>
2577+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26272578
</tr>
26282579
<tr>
26292580
<td><strong><a href="track.md">Track</a></strong></td>
2630-
<td>Resets</td>
2581+
<td style="text-align:center;vertical-align:middle">Resets</td>
26312582
<td colspan=2>Resets the motor position and the <code>translation</code> field of the textureTransform node of the <a
26322583
href="appearance.md">Appearance</a> node of the first <a href="shape.md">Shape</a> children node
26332584
</td>
26342585
<td>Loads the motor position and the <code>translation</code> field of the textureTransform node of the <a
26352586
href="appearance.md">Appearance</a> node of the first <a href="shape.md">Shape</a> children node
26362587
</td>
2637-
<td>N/A</td>
2638-
<td>N/A</td>
2588+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26392589
</tr>
26402590
<tr>
26412591
<td><strong><a href="viewpoint.md">Viewpoint</a></strong></td>
2642-
<td>Resets</td>
2592+
<td style="text-align:center;vertical-align:middle">Resets</td>
26432593
<td colspan=2>Resets <code>orientation</code>, <code>position</code>, <code>near</code>, <code>far</code>, and
26442594
<code>fieldOfView</code> fields
26452595
</td>
26462596
<td>Loads <code>orientation</code>, <code>position</code>, <code>near</code>, <code>far</code>, and
26472597
<code>fieldOfView</code> fields
26482598
</td>
2649-
<td>N/A</td>
2650-
<td>N/A</td>
2599+
<td style="background-color:#eee;text-align:center;vertical-align:middle" colspan=2>N/A</td>
26512600
</tr>
26522601
</tbody>
26532602
</table>

0 commit comments

Comments
 (0)