anki / drive-sdk Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tkuyucu-nordicsemi/drive-sdk
Anki Drive SDK
License: Apache License 2.0
This project forked from tkuyucu-nordicsemi/drive-sdk
Anki Drive SDK
License: Apache License 2.0
Using the library method anki_vehicle_msg_turn_180()
does nothing. For testing I have added a command turn
:
{ "turn", cmd_anki_vehicle_turn, "turn vehicle", "turn the vehicle by 180°"},
and the following method:
static void cmd_anki_vehicle_turn(int argcp, char **argvp) {
uint8_t* value;
size_t plen;
int handle;
if (conn_state != STATE_CONNECTED) {
failed("Disconnected\n");
return;
}
handle = vehicle.write_char.value_handle;
rl_printf("turn 180°\n");
anki_vehicle_msg_t msg;
plen = anki_vehicle_msg_turn_180(&msg);
value = (uint8_t *)&msg;
gatt_write_char(attrib, handle, value, plen, NULL, NULL);
}
Commands used with vehicle-tool
:
connect
sdk-mode 1
set-speed 400
turn
The proper Makefile is generated by running CMake.
The proper Makefile is generated by CMake. This Makefile is not needed.
Hello!
I am currently working on a self driving car project with the drive-sdk!
Unfortunately, if the car leaves the track at all, it tends to go crazy (it seems to be searching for the track), would it be possible to change this/would could it be possible to get a hint as to where in the code this would be located?
I appreciate the help!
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/test_protocol.c
This file should have copyright and licensing information at the top:
https://github.com/anki/drive-sdk/blob/master/test/anki_greatest.h
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/format_scans.rb
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/test_ble_advertisement.c
Hi,
during a Localization Transition Update I receive for the road_piece_idx and road_piece_idx_prev always the values 0. I'm not sure what they are for, but I'm searching for a way to uniquely Identify each point on the map.
Hello,
I try to communicate with anki-cars via bluetooth in raspberry pi 3. I am able to connect the car. But i have no callback when I write conmand.
pi@raspberrypi:~ $ sudo anki/drive-sdk/build/dist/bin/vehicle-scan
LE Scan ...
C4:A8:F8:D1:CA:E4 Drive [v305f] (Unknown 2408)
pi@raspberrypi:~ $ sudo anki/drive-sdk/build/dist/bin/vehicle-tool --device=C48:F8:D1:CA:E4
[C4:A8:F8:D1:CA:E4][LE]> connect
Attempting to connect to C4:A8:F8:D1:CA:E4
Connection successful
Error: Discover primary services by UUID failed: Internal application error: I/O
[C4:A8:F8:D1:CA:E4][LE]> sdk-mode 1
[C4:A8:F8:D1:CA:E4][LE]> ping
[C4:A8:F8:D1:CA:E4][LE]> set-lights-pattern TAIL FLASH 1 6 15
Thanks for any help you can provide!
Sincerely,
Ben
The top of this file should have copyright and licensing information.
https://github.com/anki/drive-sdk/blob/master/examples/vehicle-scan/vehicle-scan.c
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/test_ble.cpp
This file should have copyright and licensing information at the top:
https://github.com/anki/drive-sdk/blob/master/test/adv_data.h
Hi,
First of all awesome SDK 👍 I hope you keep it up despite the "problems" of anki.
I bought an anki road with an intersection and wanted to turn at it (left right).
I used your sdk for it. While everything works just fine and I can even do a uturn, the turn commands LEFT and RIGHT don't do anything (In the examples/vehicle-toos repo).
I tried to set the messages manually by setting the type 1 and 2 respectively, but nothing happened either.
Is there a way to do a turn left or right? Do I somehow need to register the intersections somewhere in the first place?
Steps to reproduce:
Note: Furthermore, I noticed upon writing turn left in lowercase I get a segfault.
Thanks
It's not clear what is the actual stable versio
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/test_suite.c
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/run_tests.cpp
say I receive answers with message types 0x36, 0x3f, 0x86. How to parse those answers?
received unknown response, type 86 full [11, -122, 11, 0, 35, 8, 0, 0, 8, 16, 0, 0]
received unknown response, type 86 full [11, -122, 2, 0, 36, 8, 0, 0, -50, 10, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, -24, 3]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 86 full [11, -122, 57, 0, 33, 8, 0, 0, 0, 15, 0, 0]
received unknown response, type 86 full [11, -122, 24, 0, 37, 8, 0, 0, 113, 14, 0, 0]
received unknown response, type 36 full [3, 54, 0, 100]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 36 full [3, 54, 39, 16]
received unknown response, type 36 full [3, 54, 0, 0]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 3f full [5, 63, 0, 0, 0, 1]
received unknown response, type 86 full [11, -122, 41, 0, 36, 8, 0, 0, -90, 15, 0, 0]
received unknown response, type 86 full [11, -122, 28, 0, 35, 8, 0, 0, -107, 14, 0, 0]
I am able to connect to the vehicles and set the speed, however when I write data to them, they automatically disconnect and I'm not able to read any data
This file should have copyright and licensing information at the top:
https://github.com/anki/drive-sdk/blob/master/src/advertisement.c
It sounds like there are different sdk modes but it is not clear where the difference. Say, I connected to car and turn lights, it works. I try to set speed and it doesn't work. Is it because of wrong sdk mode?
The top of this file should have copyright and licensing information:
https://github.com/anki/drive-sdk/blob/master/test/test_vehicle_advertisement.c
Hi,
this is not really code specific but I didn't know where else to ask.
The Anki-Dev Group (https://groups.google.com/a/anki.com/forum/#!forum/anki-dev) is not accessible anymore. It asks me to join but denies access afterwards as it is limited to "accounts from this organisation" . Is this on purpose?
Cheers,
Michael
In anki_vehicle_light_config the cycles_per_minute parameter is limited to 11, which seems to be an unreasonably low value. Removing this limit allows e.g. specifying light patterns equivalent to the throbbing blue of connected vehicles.
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.