**** BEGIN LOGGING AT Sun Apr 14 02:59:57 2019 Apr 14 17:15:50 hi Im using the beaglebone blue and need a hand Apr 14 17:16:46 where should my robotcontrol.h file be located so that my program will compile Apr 14 17:19:48 beaglebluenew: that's a generic compiler question and not really related to the device Apr 14 17:21:09 also what do you mean with "my robotcontrol.h" ? isn't robotcontrol.h the header of librobotcontrol? Apr 14 17:22:07 anyway, the manual has steps on how to properly setup your project: http://strawsondesign.com/docs/librobotcontrol/manual.html Apr 14 17:22:31 the project i am making is from the paktpub beaglebone blue book Apr 14 17:22:38 second edition Apr 14 17:22:53 and yeah, robotcontrol.h is the header file of librobotcontrol, so you don't need to concern yourself with its placement Apr 14 17:23:36 i think i do cause i get error: robotcontrol.h no such file or directory when i type the make command after make clean Apr 14 17:24:04 are you using the latest debian stretch-iot image? I'm pretty sure librobotcontrol is installed by default Apr 14 17:24:42 yeah, the documentation confirms this Apr 14 17:24:52 your totally right it is and i just used the rc_test_motor program to see if my motor 1 and motor 2 are working on my beaglebone blue and it ran no problem Apr 14 17:25:06 so all good there Apr 14 17:25:18 what does "cat /etc/dogtag" say? Apr 14 17:25:59 beagleBeagleBoard.org Debian Image 2017-04-09 Apr 14 17:26:09 that's an ancient image, and that's why you're having problems Apr 14 17:26:33 but i did the sudo apt-get update && sudo apt-get upgrade Apr 14 17:26:35 see http://strawsondesign.com/docs/librobotcontrol/flashing.html Apr 14 17:27:07 apt-get upgrade is not a substitute for using the latest image Apr 14 17:27:09 i just ran the rc_test_motor it works! Apr 14 17:27:16 so how can it be an issue? Apr 14 17:27:33 in particular it will not update the kernel, bootloader, nor install packages that are installed by default. basically it tries to avoid major/incompatible changes Apr 14 17:27:52 ok i see gotcha Apr 14 17:27:52 most likely you're still using the old libroboticscape, which had the same "rc_" test programs Apr 14 17:28:09 thats correct Apr 14 17:28:42 so while you could try to manually upgrade all the relevant parts, reflashing to the latest stretch-iot image is much simpler and highly recommended Apr 14 17:29:40 otherwise you'll have trouble figuring out if something isn't working because you're doing something wrong, or because something is wrong with your system (i.e. something that needs to be upgraded or whose default configuration doesn't match the latest image) Apr 14 17:30:18 ok so when updating my beaglebone blue should i not use the apt-get cause it doesn't really count?? Apr 14 17:30:50 well it generally doesn't hurt, and may yield bugfixes and other improvements, but it's not a substitute for using the latest image. especially not when your current image is *that* old Apr 14 17:31:59 ok so ive updated stuff before and it was a disaster im terrifed to do it again i just got the thing running I lost my cloud9 connection then had to ssh into my board cause the update froze and finally got it back Apr 14 17:32:42 yeah apt-get update can also cause problems, especially on a system that has not been updated in a very long time Apr 14 17:32:53 reflashing doesn't have that problem since you start with a completely clean slate Apr 14 17:33:17 (apt-get upgrade I mean, not update) Apr 14 17:33:23 ok so re-flashing entails what exaclty? just copying files ?? Apr 14 17:34:04 i really just want to finsih the chapter 3 project by dr richard grimmet and get the robot to move forward backwareds left and right Apr 14 17:34:13 reflashing means eMMC is wiped and its contents replaced with the system that's not the flasher card Apr 14 17:34:45 it takes like 10-15 minutes Apr 14 17:35:05 i dont even have an SD card on my board i have xfce4 installed on my beagleblue and acess it through a remote desktop Apr 14 17:35:20 ew Apr 14 17:35:27 why not just ssh? Apr 14 17:36:09 i also ssh as well but the chapter says i wil need a basic GUI when i get on to later chapters for the camera a colour recognition Apr 14 17:36:27 so i set it up most times i just ssh Apr 14 17:36:33 anyway, it's up to you. you can try to manually "sudo apt-get install librobotcontrol" Apr 14 17:36:54 but I don't know if that will be sufficient Apr 14 17:37:16 but i have done that already so ill have to do what you said i think i have the librobotcontrol already on my beagleblue Apr 14 17:38:03 well apparently not Apr 14 17:38:07 like i am so close man this is painful espically as a new guy. Apr 14 17:38:08 otherwise you wouldn't get that error Apr 14 17:38:34 if it says it can't find robotcontrol.h, then librobotcontrol isn't installed Apr 14 17:39:39 its installed under /home/debian/librobotcontrol im in there on ssh right now wiht the rc_project_template Apr 14 17:40:12 just ran rc_test_motor -f -m 1 d-0.5 and all good Apr 14 17:40:16 in other words it's not installed Apr 14 17:40:28 hmmm? ok i dont get it Apr 14 17:40:40 but my motors spin lol Apr 14 17:40:52 it is normally installed as a system package, which includes putting the library and headers in the right place so the compiler will find them Apr 14 17:41:13 on any sufficiently recent image, it will be installed by default Apr 14 17:41:17 ok ok so currently the librarys are not in the right place, that makes sense Apr 14 17:41:48 but I'm pretty sure "librobotcontrol" didn't exist in 2017 yet (it was still called "libroboticscape"), which is why it's not installed already on your ancient system Apr 14 17:42:40 so like I said, if you really don't want to reflash (which I'd still recommend) then you can try "sudo apt-get install libroboticscape" Apr 14 17:43:57 ok so to be clear 1. suod apt-get update && sudo apt-get upgrade, is good but doesn't uprade everything such as the kernal and 2. I need to flash my eMMC so that I can get the librobotconrol installed correctly even although I can currently run the rc_battery rc_test_motor rc whatever i want Apr 14 17:44:09 ah, I was right, the first commit that changed the name from libroboticscape to librobotcontrol was 2018-06-11: https://github.com/StrawsonDesign/librobotcontrol/commit/2bd349cacf57 Apr 14 17:44:38 no, like I said twice already you can install librobotcontrol with apt Apr 14 17:45:03 sorry man im away to do it one sec appologies Apr 14 17:45:10 but since your system is so old, and not everything gets updated by apt, there's a decent chance that more will end up not working if you proceed down this road Apr 14 17:46:09 but maybe you're lucky and installing librobotcontrol will suffice for your purposes Apr 14 17:46:37 but the more you do on this old image, the more work you'd have to redo if you reflash Apr 14 17:46:59 so that's the thing to keep in mind Apr 14 17:47:03 ok so basiclly time to reflash Apr 14 17:47:08 best option Apr 14 17:47:26 it can't find the libroobotcontrol anyway etf? Apr 14 17:47:50 i just did the apt-get and even tried to tab a bunch of times to get it to pop up Apr 14 17:48:01 wait, is this even debian stretch or is it still debian jessie? Apr 14 17:48:10 debian jessie Apr 14 17:48:13 oh god Apr 14 17:48:18 lol Apr 14 17:48:25 lol what ha ha Apr 14 17:49:29 i can only go with whats availbale man i bought a book from paktpub on the blue and all of it worked so far lol Apr 14 17:49:34 anyway, since jessie was already obsolete before librobotcontrol existed, it's not surprising there's no librobotcontrol package for it Apr 14 17:50:01 ok Apr 14 17:50:11 did it instruct you to flash this specific old image, or is this just what happened to be on the blue when you got it? Apr 14 17:50:36 my goodness man i have no idea i just tried following all the stuff i spent $50 on this book and was impressed it didn't break my board like a youtibe video did last time Apr 14 17:51:02 since if the book uses librobotcontrol, I'd think they're assuming you have a more recent system than this 2017 jessie image Apr 14 17:51:19 i updated upgraded and was happy with that i can now wireless access my board from my mac my chromebook or any pc and was like yeah im good Apr 14 17:51:30 got the motor to spin and was like fuck yeah!! Apr 14 17:51:37 an now this.................ahhhhh lol Apr 14 17:51:45 fair enough, I can understand that reasoning :) Apr 14 17:52:23 unfortunately you never know how long a beaglebone has been sitting on a shelf in a warehouse before you get it, so it can have really old firmware flashed onto it Apr 14 17:52:50 I feel like it might actually be better if they'd be shipped completely blank and have users flash firmware as step 1 Apr 14 17:53:28 so its not like I havn't really tired as a new guy that surfs the web you know im not an engineer so i can navigate the terminal now and use ssh compile python gcc and g++ and know the options for most commands so im new but not greeen Apr 14 17:54:01 ok so please can you help me flash this thing is there a vido i can watch or somwthing? Apr 14 17:54:18 or jsut read this strwason thing Apr 14 17:54:20 http://strawsondesign.com/docs/librobotcontrol/flashing.html Apr 14 17:54:26 yeah, they explain it quite well Apr 14 17:54:56 so will i need an SD card?? Apr 14 17:55:06 but it's basically just: download the flasher image strawson provides, flash it onto sd card, boot beaglebone from sd card, wait until it's done flashing Apr 14 17:55:18 right now i don't have one i jsut have th 4G onboard memory that came with it at moment Apr 14 17:55:37 yeah, you won't need it anymore when it's done flashing, just temporarily for the flashing process Apr 14 17:55:57 ok so buy an SD card use maybe a program like etcher to install the image?? Apr 14 17:56:58 in theory flashing via usb without sd card is possible, but I don't know if it actually works... I've never tried it: https://github.com/ravikp7/BeagleBoot Apr 14 17:57:01 this really is a lot of pissing around like i have no probelm working hard but in ciricles i think thats not cool Apr 14 17:57:25 yeah i don't wanna break the board so ill buy the sd card Apr 14 17:57:35 you won't "break" the board Apr 14 17:57:49 you know what i mean lol Apr 14 17:57:59 worst case, if it messes up eMMC, you can still just reflash using sd card Apr 14 17:58:10 will i have to change any settings or can the board just boot from the micro SD no problem Apr 14 17:59:01 there's a button you can use (by holding it down while powering on the board) to _force_ sd card boot, but usually it's not needed Apr 14 18:00:51 ok there pwr reset mode and another one but i think your right on the beaglebone blue theres one on the top right to access the SD boot so just hold that down when it's powering up?? or wiat Apr 14 18:00:57 (details: bootrom prefers loading the bootloader from eMMC over loading it from sd-card, but the bootloader prefers loading linux from sd-card over loading it from eMMC. using the sd-boot button forces the bootloader to be loaded from sd card, and may be useful if the bootloader on eMMC is ancient, weird, broken, or otherwise refuses to load linux from sd card) Apr 14 18:01:12 i wish a bought a black theres like no bloody info on the blue Apr 14 18:01:55 note that this is described on stawson's page Apr 14 18:02:11 i like that so its like having another "OS" on your SDcard so if the eMMC sucks or is old i can bypass it with the button Apr 14 18:02:34 yes, with the SD button you make the contents of eMMC completely irrelevant, so you can always recover Apr 14 18:03:00 which is why I could confidently say you won't "break" the board Apr 14 18:04:07 so if you don't have an sd card, it won't hurt to give that "beagleboot" usb flasher one try before you go out to buy an sd card Apr 14 18:05:08 dude your right i do have loads of usb sticks kicking, so am i correct in saying 1. download that image 2. flash it using etcher 3. try and get it to boot from the USB when i power up the board??? Apr 14 18:05:11 if it works, then great you've saved some time and money. if it doesn't work, then just get an sd card and reflash the normal way Apr 14 18:05:25 no reflashing via usb doesn't mean using an usb stick Apr 14 18:05:32 it can't boot from an usb stick Apr 14 18:06:03 my name is chris by the way thank you so much for your time and patience zmatt i really appreciate it most of the time is a snarky little geek replying unhelpful comments so i appreacite you being so cool about this Apr 14 18:06:56 ahh sorry again so basiclly connect the board to the iMac and going from there gotcha Apr 14 18:07:50 rather, when the beaglebone is attached via usb to your computer, and you power on with SD button held down but no sd card inserted, it will attempt to perform a kind of netbooting via usb. that BeagleBoot thing I linked to is intended to then boot the beaglebone into a tiny linux system that makes the eMMC storage visible via usb (as if the beaglebone is an usb stick), and then proceeds to flash it ... Apr 14 18:07:56 ...directly Apr 14 18:08:44 it's pretty neat. I should probably try it out some time to see if it works well enough to be able to recommend it to new useres Apr 14 18:08:51 *users Apr 14 18:09:47 unfortunately it's not very confidence-inspiring that it has exactly one release, described as "First Alpha release", and it's from 2017 Apr 14 18:10:40 hmmm so basiclly im a lab rat at this point lol Apr 14 18:10:49 :D Apr 14 18:10:55 ha ha ha ha ha Apr 14 18:11:06 sorry man im gonna buy the SD card lol Apr 14 18:11:11 fair Apr 14 18:11:35 if your telling me what to do and your good and never done theres not way in hell im doing it lol ha ha ha Apr 14 18:13:21 so if I did have the robotcontrol.h file where would i save it on my system under the /root/bin folder so it can be found "globally"? Apr 14 18:14:25 I mean, I estimate there's a very good chance it works, and if it doesn't work then most likely it simply "doesn't work", e.g. is never even able to begin flashing Apr 14 18:15:41 if you'd want to manually install librobotcontrol on your current system, you would follow the steps under "Method 3: Installing From Source (not recommended)" here: http://strawsondesign.com/docs/librobotcontrol/installation.html Apr 14 18:16:38 ok how do you know all this stuff did you take a class or what? like how can i get more reliable info I though i was on the right track here Apr 14 18:18:44 I dunno, I just learned it. I've been working with beaglebones for a good while already Apr 14 18:19:20 and I've been a linux user for much longer than that Apr 14 18:20:20 i see ive been at it for 2 moths and thought it was a good choise but i maybe should have got the pi. the power is there but the help isn't theres really no videos it always github straswon and i have no idea what any of that stuff is Apr 14 18:20:52 yeah the documentation situation is overall... not great Apr 14 18:23:03 it just doesn't have the huge amount of users that the rpi does Apr 14 18:23:09 its terrible its like heres the most coolest powerful piece of hardware you can do anything with but by the way fuck you were not gonna tell you how to use it go figure it out Apr 14 18:23:37 well it's not a "fuck you".. it's just.. documentation doesn't magically appear out of nowhere Apr 14 18:23:38 why bother? Apr 14 18:24:02 but there are people who make it so why not have a booklet with it?? Apr 14 18:24:19 makes no sense to me Apr 14 18:25:08 if only it were that simple Apr 14 18:25:44 in practice, creating documentation and keeping it uptodate takes a lot of time, and the small number of people that beagleboard.org has probably all have pretty busy schedules already Apr 14 18:25:52 why isn't it? i don't get it its like if i made a car or gaming system theres a booklet on what it does and comes with? Apr 14 18:26:10 yeah thers like 4 or 5 of them right? Apr 14 18:28:34 a few of which seem to be pretty peripherally related to it, like I've never seen Kipp Bradford's name mentioned anywhere other than on the About Us page :P Apr 14 18:30:06 hmm so the Dr. RIchard Grimmet book that i have BeagleBOne Robotic Prjects Second Edtion is too old then? Apr 14 18:30:21 and all of them have other jobs, they just do stuff for beagleboard.org as a side thing afaik Apr 14 18:30:40 I have no idea, I've never read any book about the beaglebone Apr 14 18:31:00 if it uses librobotcontrol then it can't be very old Apr 14 18:31:33 oh it is kinda old Apr 14 18:32:24 unfortunately books on fast-moving technology have a tendency to be old the moment they hit the shelves. of course that doesn't necessarily mean the contents is bad or useless Apr 14 18:33:11 no i agree im its been helpful but all i need is to lietarrly get the thing going Apr 14 18:33:15 rc_motor_control.c:9:67: fatal error: robotcontrol.h: No such file or directory #include // includes ALL Robot Control subsystems Apr 14 18:33:41 its like why can i find it for the rc_test_motors program and not for mine? Apr 14 18:33:53 argh Apr 14 18:34:25 because the test programs that are built as part of the project are built with custom paths setup to accomodate the fact that the library isn't installed yet Apr 14 18:34:56 since otherwise you'd first have to install the library, then build the programs, and then install those, which would be rather annoying Apr 14 18:35:46 anyway, you should really stop asking something which has been answered in many ways already. I've even answered how to manually install the library on your current system, even though this is not recommended Apr 14 18:37:25 fiar enough sorry zmatt for using up so much of your time, SD time it is Apr 14 18:38:57 thanks again i appreciate it **** ENDING LOGGING AT Mon Apr 15 02:59:57 2019