HackerTrans
TopNewTrendsCommentsPastAskShowJobs

facontidavide

no profile record

Submissions

Beyond State Machines: BehaviorTree.CPP 4.0

behaviortree.dev
13 points·by facontidavide·4 ปีที่แล้ว·3 comments

comments

facontidavide
·6 เดือนที่ผ่านมา·discuss
Since I still see this on the front page, I am taking the liberty to plug my own funny experiment (still WIP).

By no mean it is as nice looking as your demo, but it is interesting to ME... C++, compiled to WASM, using WebGL. Works on Firefox too. M4 decimation.

https://one-million-points-wasm.netlify.app/
facontidavide
·6 เดือนที่ผ่านมา·discuss
Soon there will be only 3 factors that we will care about: API (easy to use and integrate), behavior (does it do what I want it to do?) and testability (do I have sufficient guaranty that the code doesn't have errors).

The fact that the code was generated by a human or a machine is less and less important.
facontidavide
·6 เดือนที่ผ่านมา·discuss
Cool to see that this project started 5 days ago! Unfortunately, I can not make it work on my system (Ubuntu, chrome, WebGPU enabled as described in the documentation). On the other hand, It works on my Android phone...

Funny enough, I am doing something very similar: a C++ portable (Windows, Linux MacOS) charting library, that also compile to WASM and runs in the browser...

I am still at day 2, so see you in 3 days, I guess!
facontidavide
·3 ปีที่แล้ว·discuss
I have been doing robotics for 20 years, and the "trend" to adopt a distributed architecture was already popular 15 years ago. ROS just adopted and continued that trend. I think you are missing some important points:

- a large amount of data can be transferred asynchronously. Pub/Sub is a great pattern to achieve that; the cases when you need a synchronous interface are the minority.

- a robotic software has MANY components, you need an approach that incentivize decoupling and lousily-coupled interfaces.

- this lousily-coupled architecture has been a catalyst for innovation and cooperation, because it makes it easier for people to share their code as "building blocks" of a larger system.

Is there a considerable overhead? Sure! But it is much more complicated to write thread-safe code in a huge, monolithic application.
facontidavide
·4 ปีที่แล้ว·discuss
Main author here of the library: I just released the 4th major version of BehaviorTree.CPP.

https://github.com/BehaviorTree/BehaviorTree.CPP

This library is increasingly popular in robotics and automation, and I am very excited about the new features being introduced.