GithubHelp home page GithubHelp logo

dgerod / behavior_tree_learning Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 1.0 596 KB

Learning Behavior Trees using Genetic Programming

License: Apache License 2.0

Python 99.85% CMake 0.15%
behavior-tree python3 genetic-programming robotics ros1 learning

behavior_tree_learning's Introduction

Hi there 👋

I am a computer engineer specialized in Robotics, a generalist roboticist. My main expertise areas are: (1) Development of Software Systems, and (2) Robotics and Intelligent Systems.

In my scratchpad I write quick notes about things that I see in my daily work and could be interesting for other people. However, there you could also find brief explanations of some projects I worked. The lastest notes are:

behavior_tree_learning's People

Contributors

dgerod avatar jstyrud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cyt1984

behavior_tree_learning's Issues

Add authors to the license file

Hi @matiov, @jstyrud

This issue is only to inform you that your names are in the license of this work as it is derived from your repositories. Please, answer this issue saying that you read it, so after that I will close the issue. Of course, feel free to provide any other comment you want :-).

Thanks.

I can't run this.There are 3 errors.Here is the traceback

When I type tihs code: **python3 -m unittest discover -s . -p 'test_*.py'**

Here is the traceback:

............./home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test/fitness_log.txt' mode='x' encoding='UTF-8'>
open(fitness_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:89: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test/population_log.txt' mode='x' encoding='UTF-8'>
open(population_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.No handles with labels found to put in legend.
No handles with labels found to put in legend.
No handles with labels found to put in legend.
./home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test1/fitness_log.txt' mode='x' encoding='UTF-8'>
open(fitness_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:89: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test1/population_log.txt' mode='x' encoding='UTF-8'>
open(population_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test2/fitness_log.txt' mode='x' encoding='UTF-8'>
open(fitness_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/core/logger/logplot.py:89: ResourceWarning: unclosed file <_io.TextIOWrapper name='logs/test2/population_log.txt' mode='x' encoding='UTF-8'>
open(population_log_path, "x")
ResourceWarning: Enable tracemalloc to get the object allocation traceback
No handles with labels found to put in legend.
.............FF..................Fallback
--> c0
--> c0

Fallback
(-) Fallback
--> c0
--> c0

Fallback
(-) Fallback
--> c0
--> c0
(-) Sequence
--> c0
--> c0

Fallback
(-) Fallback
--> c0
--> c0
(-) Fallback
(-) Sequence
--> c0

Fallback
(-) Fallback
--> c0
--> c0

Fallback
(-) Fallback
--> c0

.F

FAIL: test_add_node (test_sbt_btsr.TestBehaviorTreeStringRepresentation)
Tests add_node function

Traceback (most recent call last):
File "/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/tests/test_sbt_btsr.py", line 249, in test_add_node
self.assertEqual(btsr.bt, ['s(', 'a0', 'a3', 'a0', ')'])
AssertionError: Lists differ: ['s(', 'a0', 'a5', 'a0', ')'] != ['s(', 'a0', 'a3', 'a0', ')']

First differing element 2:
'a5'
'a3'

  • ['s(', 'a0', 'a5', 'a0', ')']
    ? ^
  • ['s(', 'a0', 'a3', 'a0', ')']
    ? ^

======================================================================
FAIL: test_change_node (test_sbt_btsr.TestBehaviorTreeStringRepresentation)
Tests change_node function

Traceback (most recent call last):
File "/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/tests/test_sbt_btsr.py", line 225, in test_change_node
self.assertEqual(btsr.bt, ['s(', 'f(', 'a0', 'a0', ')', 'a0', ')'])
AssertionError: Lists differ: ['s(', 'f(', 'a2', 'a0', ')', 'a0', ')'] != ['s(', 'f(', 'a0', 'a0', ')', 'a0', ')']

First differing element 2:
'a2'
'a0'

  • ['s(', 'f(', 'a2', 'a0', ')', 'a0', ')']
  • ['s(', 'f(', 'a0', 'a0', ')', 'a0', ')']

======================================================================
FAIL: test_str_from_bt (test_sbt_pytree.TestStringBehaviorTree)

Traceback (most recent call last):
File "/home/mokey2/Desktop/behavior_tree_learning/src/behavior_tree_learning/tests/test_sbt_pytree.py", line 69, in test_str_from_bt
self.assertEqual(bt.to_string(), sbt)
AssertionError: Lists differ: ['f(', '(-) f(', 'c0', 'c0', '(-) f(', '(-) s(', 'c0', ')'] != ['f(', 'f(', 'c0', 'c0', ')', 'f(', 's(', 'c0', ')', ')', ')']

First differing element 1:
'(-) f('
'f('

Second list contains 3 additional elements.
First extra element 8:
')'

  • ['f(', '(-) f(', 'c0', 'c0', '(-) f(', '(-) s(', 'c0', ')']
    ? ---- -- ^ ----
  • ['f(', 'f(', 'c0', 'c0', ')', 'f(', 's(', 'c0', ')', ')', ')']
    ? ^^^^ ++++++++++

Ran 50 tests in 0.919s

FAILED (failures=3)

Can you help me on this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.