josephcappadona / sphero-project Goto Github PK
View Code? Open in Web Editor NEWUsing A* search to guide Spheros
Using A* search to guide Spheros
Hi, I am trying to make this project work so that I can control my R2-Q5 from a Raspberry 4.
I solved a problem in yarn install with the dependency that wasn't for Linux (xpc-connection) and made it to rebuild by commenting a line in scanner.ts that had a problem with declarations (import { IToyDiscovered } from './scanner';).
After fighting with the bluetooth-hci module I managed to have everything ready but it still doesn't work.
Can someone help me?
This is the error:
sudo yarn server
yarn run v1.19.2
$ ts-node src/server
/usr/lib/node_modules/ts-node/src/index.ts:293
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/server.ts:1:40 - error TS2307: Cannot find module 'spherov2.js'.
1 import { Scanner, Stance, Utils } from 'spherov2.js';
~~~~~~~~~~~~~
src/server.ts:2:28 - error TS2307: Cannot find module 'spherov2.js'.
2 import { R2D2, R2Q5 } from 'spherov2.js';
~~~~~~~~~~~~~
src/server.ts:3:30 - error TS2307: Cannot find module 'spherov2.js'.
3 import { sounds_array } from 'spherov2.js';
~~~~~~~~~~~~~
at createTSError (/usr/lib/node_modules/ts-node/src/index.ts:293:12)
at reportTSError (/usr/lib/node_modules/ts-node/src/index.ts:297:19)
at getOutput (/usr/lib/node_modules/ts-node/src/index.ts:399:34)
at Object.compile (/usr/lib/node_modules/ts-node/src/index.ts:457:32)
at Module.m._compile (/usr/lib/node_modules/ts-node/src/index.ts:530:43)
at Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Object.require.extensions.<computed> [as .ts] (/usr/lib/node_modules/ts-node/src/index.ts:533:12)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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.