Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
ackthomas committed Sep 1, 2018
1 parent 1cb3c41 commit 714af37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/robotarium/30_charging_setup/30_charging_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Next: Assembly a charging capable Duckiebot with a current collector [](#sec:aut
</div>

<div figure-id="fig:charging_module_during_operation">
<img src="images/charging-module.jpg" style="width: 80%"/>
<img src="images/charging-module.jpg" style="width: 80%" data-rotate="90"/>
<figcaption>
A resulting charging module during operation.
</figcaption>
Expand Down
2 changes: 1 addition & 1 deletion book/robotarium/30_charging_setup/40_current_collector.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In order to let a Duckiebot charge in a charger, additional hardware is needed.

Requires: Material for a single current collector [](#sec:autocharging-current-collector-mat)

Result: A charging capable Duckiebots.
Result: A charging capable Duckiebot [](#fig:capable-Dbot).

</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Operating a Duckiebot inside a megacity requires software which can switch from state to state. In this section, we describe how we have fit the maintenance code into the bigger picture.

## transition of states
## Transition of states

As soon as the script megacity is launched ([](#sec:autocharging-launch)) , a Duckiebot is placed into the city and is able to drive around. A timer, the charge estimation algorithm or a human being triggers a topic called GO_TO_CHARGING from the maintenance control node in order to recognize the time when we need to put the Duckiebot into the charging area. When this state is switched from NONE to WAY_TO_MAINTENANCE, the Duckiebot is guided towards the entrance of the maintenance area by a fleet management algorithm. Having arrived at the entrance, this state will get switched to WAY_TO_CHARGING. The Duckiebot request a free charging spot from a TCP-server ([](#sec:autocharging-tcp-server)). After some time the Duckiebot receives a free spot and is guided towards the given charger and enters it. At this point a transition of state from WAY_TO_CHARGING to CHARGING follows and the finite state machine state switches to IN_CHARGING_AREA. These states mean that the Duckiebot is inside the charger and that it will keep distance from other Duckiebots queued up there. As soon as the Duckiebot sees a red line at the end of a charger the finite state is switched to CHARGING_FIRST_IN_LINE. At this given point of time the Duckiebot is the first one being able to leave the charger and it only needs to wait until it gets fully charged or someone triggers it to exit the charger and free another charging spot. By the time a Duckiebot receives a ready to go from a timer, the charge estimation algorithm or a human being two things happens: the finite state switches to LANE_FOLLOWING which makes the Duckiebot able to drive and the maintenance control node switches to WAY_TO_CITY. The Duckiebot is now guided out of the maintenance area. If the exit is reached, the maintenance control node is switched to NONE and the Duckiebot is again able to drive around in the city.

Expand Down

0 comments on commit 714af37

Please sign in to comment.