Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10b7232

Browse files
author
Davide Faconti
committed
Deployed 0a7e0f4 with MkDocs version: 1.0.4
1 parent d4ba2be commit 10b7232

File tree

15 files changed

+1303
-216
lines changed

15 files changed

+1303
-216
lines changed

404.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@
402402

403403

404404
<li class="md-nav__item">
405-
<a href="/getting_started/" title="How to use the library" class="md-nav__link">
406-
How to use the library
405+
<a href="/getting_started/" title="Main concepts" class="md-nav__link">
406+
Main concepts
407407
</a>
408408
</li>
409409

@@ -414,20 +414,8 @@
414414

415415

416416
<li class="md-nav__item">
417-
<a href="/getting_started/" title="BT at run-time" class="md-nav__link">
418-
BT at run-time
419-
</a>
420-
</li>
421-
422-
423-
424-
425-
426-
427-
428-
<li class="md-nav__item">
429-
<a href="/getting_started/" title="Examples" class="md-nav__link">
430-
Examples
417+
<a href="/tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
418+
How to create a Tree
431419
</a>
432420
</li>
433421

BT_basics/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@
489489

490490

491491
<li class="md-nav__item">
492-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
493-
How to use the library
492+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
493+
Main concepts
494494
</a>
495495
</li>
496496

@@ -501,20 +501,8 @@
501501

502502

503503
<li class="md-nav__item">
504-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
505-
BT at run-time
506-
</a>
507-
</li>
508-
509-
510-
511-
512-
513-
514-
515-
<li class="md-nav__item">
516-
<a href="../getting_started/" title="Examples" class="md-nav__link">
517-
Examples
504+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
505+
How to create a Tree
518506
</a>
519507
</li>
520508

BlackBoard/index.html

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@
413413

414414

415415
<li class="md-nav__item">
416-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
417-
How to use the library
416+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
417+
Main concepts
418418
</a>
419419
</li>
420420

@@ -425,20 +425,8 @@
425425

426426

427427
<li class="md-nav__item">
428-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
429-
BT at run-time
430-
</a>
431-
</li>
432-
433-
434-
435-
436-
437-
438-
439-
<li class="md-nav__item">
440-
<a href="../getting_started/" title="Examples" class="md-nav__link">
441-
Examples
428+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
429+
How to create a Tree
442430
</a>
443431
</li>
444432

@@ -501,13 +489,13 @@ <h1>The BlackBoard</h1>
501489
</a>
502490

503491

504-
<a href="../getting_started/" title="How to use the library" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
492+
<a href="../getting_started/" title="Main concepts" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
505493
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
506494
<span class="md-flex__ellipsis">
507495
<span class="md-footer-nav__direction">
508496
Next
509497
</span>
510-
How to use the library
498+
Main concepts
511499
</span>
512500
</div>
513501
<div class="md-flex__cell md-flex__cell--shrink">

ControlNode/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@
406406

407407

408408
<li class="md-nav__item">
409-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
410-
How to use the library
409+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
410+
Main concepts
411411
</a>
412412
</li>
413413

@@ -418,20 +418,8 @@
418418

419419

420420
<li class="md-nav__item">
421-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
422-
BT at run-time
423-
</a>
424-
</li>
425-
426-
427-
428-
429-
430-
431-
432-
<li class="md-nav__item">
433-
<a href="../getting_started/" title="Examples" class="md-nav__link">
434-
Examples
421+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
422+
How to create a Tree
435423
</a>
436424
</li>
437425

DecoratorNode/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@
476476

477477

478478
<li class="md-nav__item">
479-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
480-
How to use the library
479+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
480+
Main concepts
481481
</a>
482482
</li>
483483

@@ -488,20 +488,8 @@
488488

489489

490490
<li class="md-nav__item">
491-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
492-
BT at run-time
493-
</a>
494-
</li>
495-
496-
497-
498-
499-
500-
501-
502-
<li class="md-nav__item">
503-
<a href="../getting_started/" title="Examples" class="md-nav__link">
504-
Examples
491+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
492+
How to create a Tree
505493
</a>
506494
</li>
507495

FallbackNode/index.html

Lines changed: 37 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@
448448

449449

450450
<li class="md-nav__item">
451-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
452-
How to use the library
451+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
452+
Main concepts
453453
</a>
454454
</li>
455455

@@ -460,20 +460,8 @@
460460

461461

462462
<li class="md-nav__item">
463-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
464-
BT at run-time
465-
</a>
466-
</li>
467-
468-
469-
470-
471-
472-
473-
474-
<li class="md-nav__item">
475-
<a href="../getting_started/" title="Examples" class="md-nav__link">
476-
Examples
463+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
464+
How to create a Tree
477465
</a>
478466
</li>
479467

@@ -547,40 +535,40 @@ <h2 id="fallbacknode">FallbackNode</h2>
547535
<p><strong>Example</strong>:</p>
548536
<p>Try different strategies to open the door. Check first if it is open already.</p>
549537
<p><img alt="FallbackNode" src="../images/FallbackSimplified.png" /></p>
550-
<details class="example"><summary>See the pseudocode</summary><p>``` c++
551-
// At the beginning, start from first child
552-
if( state != RUNNING) {
553-
index = 0;
554-
}
555-
state = RUNNING;</p><div class="codehilite"><pre><span></span>while( index &lt; number_of_children )
556-
{
557-
child_state = child[index]-&gt;tick();
558-
559-
if( child_state == RUNNING ) {
560-
// Suspend execution and return RUNNING.
561-
// At the next tick, index will be the same.
562-
state = RUNNING;
563-
return state;
564-
}
565-
else if( child_state == FAILURE ) {
566-
// continue the while loop
567-
index++;
568-
}
569-
else if( child_state == SUCCESS ) {
570-
// Suspend execution and return SUCCESS.
571-
// index is reset and children are halted.
572-
state = SUCCESS;
573-
index = 0;
574-
HaltAllChildren();
575-
return state;
576-
}
577-
}
578-
// all the children returned failure. Return FAILURE too.
579-
state = FAILURE;
580-
HaltAllChildren();
581-
return state;
538+
<details class="example"><summary>See the pseudocode</summary><div class="codehilite"><pre><span></span> <span class="c1">// At the beginning, start from first child </span>
539+
<span class="k">if</span><span class="p">(</span> <span class="n">state</span> <span class="o">!=</span> <span class="n">RUNNING</span><span class="p">)</span> <span class="p">{</span>
540+
<span class="n">index</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
541+
<span class="p">}</span>
542+
<span class="n">state</span> <span class="o">=</span> <span class="n">RUNNING</span><span class="p">;</span>
543+
544+
<span class="k">while</span><span class="p">(</span> <span class="n">index</span> <span class="o">&lt;</span> <span class="n">number_of_children</span> <span class="p">)</span>
545+
<span class="p">{</span>
546+
<span class="n">child_state</span> <span class="o">=</span> <span class="n">child</span><span class="p">[</span><span class="n">index</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">tick</span><span class="p">();</span>
547+
548+
<span class="k">if</span><span class="p">(</span> <span class="n">child_state</span> <span class="o">==</span> <span class="n">RUNNING</span> <span class="p">)</span> <span class="p">{</span>
549+
<span class="c1">// Suspend execution and return RUNNING.</span>
550+
<span class="c1">// At the next tick, index will be the same.</span>
551+
<span class="n">state</span> <span class="o">=</span> <span class="n">RUNNING</span><span class="p">;</span>
552+
<span class="k">return</span> <span class="n">state</span><span class="p">;</span>
553+
<span class="p">}</span>
554+
<span class="k">else</span> <span class="k">if</span><span class="p">(</span> <span class="n">child_state</span> <span class="o">==</span> <span class="n">FAILURE</span> <span class="p">)</span> <span class="p">{</span>
555+
<span class="c1">// continue the while loop</span>
556+
<span class="n">index</span><span class="o">++</span><span class="p">;</span>
557+
<span class="p">}</span>
558+
<span class="k">else</span> <span class="k">if</span><span class="p">(</span> <span class="n">child_state</span> <span class="o">==</span> <span class="n">SUCCESS</span> <span class="p">)</span> <span class="p">{</span>
559+
<span class="c1">// Suspend execution and return SUCCESS.</span>
560+
<span class="c1">// index is reset and children are halted.</span>
561+
<span class="n">state</span> <span class="o">=</span> <span class="n">SUCCESS</span><span class="p">;</span>
562+
<span class="n">index</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
563+
<span class="n">HaltAllChildren</span><span class="p">();</span>
564+
<span class="k">return</span> <span class="n">state</span><span class="p">;</span>
565+
<span class="p">}</span>
566+
<span class="p">}</span>
567+
<span class="c1">// all the children returned failure. Return FAILURE too.</span>
568+
<span class="n">state</span> <span class="o">=</span> <span class="n">FAILURE</span><span class="p">;</span>
569+
<span class="n">HaltAllChildren</span><span class="p">();</span>
570+
<span class="k">return</span> <span class="n">state</span><span class="p">;</span>
582571
</pre></div>
583-
584572
</details>
585573

586574

NodeParameters/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@
406406

407407

408408
<li class="md-nav__item">
409-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
410-
How to use the library
409+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
410+
Main concepts
411411
</a>
412412
</li>
413413

@@ -418,20 +418,8 @@
418418

419419

420420
<li class="md-nav__item">
421-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
422-
BT at run-time
423-
</a>
424-
</li>
425-
426-
427-
428-
429-
430-
431-
432-
<li class="md-nav__item">
433-
<a href="../getting_started/" title="Examples" class="md-nav__link">
434-
Examples
421+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
422+
How to create a Tree
435423
</a>
436424
</li>
437425

SequenceNode/index.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@
462462

463463

464464
<li class="md-nav__item">
465-
<a href="../getting_started/" title="How to use the library" class="md-nav__link">
466-
How to use the library
465+
<a href="../getting_started/" title="Main concepts" class="md-nav__link">
466+
Main concepts
467467
</a>
468468
</li>
469469

@@ -474,20 +474,8 @@
474474

475475

476476
<li class="md-nav__item">
477-
<a href="../getting_started/" title="BT at run-time" class="md-nav__link">
478-
BT at run-time
479-
</a>
480-
</li>
481-
482-
483-
484-
485-
486-
487-
488-
<li class="md-nav__item">
489-
<a href="../getting_started/" title="Examples" class="md-nav__link">
490-
Examples
477+
<a href="../tutorial_A_create_trees/" title="How to create a Tree" class="md-nav__link">
478+
How to create a Tree
491479
</a>
492480
</li>
493481

0 commit comments

Comments
 (0)