Comments (3)
Hi Sara,
I tried to play with the collision detection when I was working on the
drive mode and I too echo your thoughts that the detection is unreliable.
It can be added as a fun feature but I guess cannot be taken for granted.
On Jul 22, 2016 9:56 PM, "Sara Ford" [email protected] wrote:
Hey all,
I've noticed the collision detection is hit or miss. I've followed this
Issue to tweak the sensitivity
sphero-inc/sphero.js#48, but it is unreliable. I
can pick up BB-8 and a collision is detected. But BB-8 can run into a wall
and lose its head and no collision detected. Seems that the collision has
to be at a certain spot on the ball.Curious if anyone else has tried to play with collision detection.
Here's my code:
module.exports = function (bb8) {
console.log("Waiting for a collision");
bb8.detectCollisions();
bb8.color("green");bb8.configureCollisions({
meth: 0x01,
xt: 0x20,
yt: 0x20,
xs: 0x20,
ys: 0x20,
dead: 0x50
});bb8.on("collision", function(data) {
console.log("collision detected");
console.log(" data:", data);bb8.color("red"); setTimeout(function() { bb8.color("green"); }, 1000);
});
bb8.roll(200, 0);
}—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#23, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJcu9mkNirIzN3rqUAXhft3lclQYaQkks5qYXSsgaJpZM4JTQT1
.
from bb8-commander.
@Sud-Puth Thanks for the response! I tried adjusting the configureCollisions sensitivity to what I'm guessing is the lowest levels and still can't detect a collision. I'll ask on the Sphero repo if no one here has figured it out. Thanks!
from bb8-commander.
I just play with sphero edu app and i have the same problem coollision detection not working
from bb8-commander.
Related Issues (18)
- [IDEA] Websocket with Canvas On The Web
- Disconnect throws an error HOT 2
- Express server does not work on MacOS HOT 14
- Disconnect command does not seem to properly stop BB8 HOT 3
- "End of script" best practices HOT 2
- [IDEA] Room Layout Mapper
- How to stop an Express script command without stopping the express server? HOT 7
- BB8 remains orange for a while after disconnection HOT 6
- Unexpected Express server disconnection HOT 3
- [IDEA] - Go nuts when OSX notification comes through.
- best practice to install a new npm package for BB8 commander HOT 2
- [IDEA] Incorporate BB-8 sounds
- bb8 setup stuck at "beginning setup"
- error: unknown option `--api-key' (openweather)
- [IDEA] - Go nuts when a goal happens in football.
- [IDEA] - Crowd Source AI HOT 3
- [IDEA] - IFTT intergration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bb8-commander.