patryk27 / shorelark Goto Github PK
View Code? Open in Web Editor NEWSimulation of life & evolution
Home Page: https://pwy.io/en/posts/learning-to-fly-pt1/
License: MIT License
Simulation of life & evolution
Home Page: https://pwy.io/en/posts/learning-to-fly-pt1/
License: MIT License
I convert the web pack app part into a vite/react-ts project then try to play a bit with the code and found an interesting thing.
PS: I changed to fov angle to PI/2 but that's not the point.
I try to render the fov because your 'arcs' seems a bit off and here's what I saw.
It comes from this part
I don't know why you added Math.PI / 2.0
here ? probably because otherwise we see the fov on the side and not in front of them, but IT REALLY is on the side, you can look with your drawn arcs and this is why birds are constantly turning.
I'm waiting for part 3 of the tutorial series :)
Compiling serde_json v1.0.59
error[E0658]: use of unstable library feature 'btreemap_remove_entry'
How can I fix this problem?
Hi! Can you explain why when you calculate a new angle and speed, you add the results of the neural network calculation (r0 and r1) for the speed, and subtract the results for the angle? Link below.
shorelark/libs/simulation/src/brain.rs
Line 32 in 7b703d4
I followed readme and failed on "wasm-pack build --release"
the versions :
[root@VM-16-13-centos simulation-wasm]# cargo --version
cargo 1.51.0 (43b129a20 2021-03-16)
[root@VM-16-13-centos simulation-wasm]# rustc --version
rustc 1.51.0 (2fd73fabe 2021-03-23)
[root@VM-16-13-centos simulation-wasm]# rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
the error info:
error[E0658]: `impl Trait` in type aliases is unstable
--> libs/genetic-algorithm/src/chromosome.rs:41:21
|
41 | type IntoIter = impl Iterator<Item = f32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(min_type_alias_impl_trait)]` to the crate attributes to enable
warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
--> libs/genetic-algorithm/src/lib.rs:1:12
|
1 | #![feature(type_alias_impl_trait)]
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
error: aborting due to previous error; 1 warning emitted
new to rust, what should i do?
Thank your write the learning-to-fly
series, I am waiting for part4.
I know the README.md
states this is licensed in MIT
, but it would be better to have an explicit LICENSE.txt
file. There are several variants of MIT license, so which is it?
Even better to have an SPDX tag in each source file.
Awesome tutorial. I really love it.
I think I found a small misunderstanding in the tutorial. In the explanation of process_vision
of eye
it says at the second point where the angles are handled:
// Returns vector's direction relative to the X axis, that is:
//
// --> = 0° = 0
//
// | = 90° = PI / 2
// v
//
// <--- = 180° = PI
//
// (if you've been measuring rotations before - this is atan2
// in disguise.)
let angle = na::Rotation2::rotation_between(
&na::Vector2::y(),
&vec,
).angle();
According to the code, it should explain the vector's direction according to the Y axis.
Got this err at line 42 of Chromosome.rs. Due to that IntoIterator() breaks a number of other places. Surprised this hasn't popped up before. Using rustc 1.68.2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.