#robotics Logs

Nov 09 2017

#robotics Calendar

01:38 AM rue_mohr: yay, my point within circle fn works
01:42 AM Jak_o_Shadows: testing if a point is?
01:44 AM rue_mohr: within a given circle
01:48 AM rue_mohr: hey, 2 in one day, my function for working out if a point is in a rectangle works to!
01:48 AM rue_mohr: I CAN STILL CODE!
01:49 AM rue_mohr: #define geom2dIsPointInCircle(P,A) ((point2dDistSquared(P, A.c) <= SQR(A.r))?1:0)
01:49 AM rue_mohr: #define geom2dIsPointInRect(P,R) ((WITHINI(R.p1.x, R.p2.x, P.x) & WITHINI(R.p1.y, R.p2.y, P.y))?1:0)
01:53 AM rue_mohr: return temp2.y+90; // no idea why I need this fudge just yet
01:53 AM rue_mohr: heh
01:53 AM rue_mohr: one day I'll discover one of the other fn's is out by 90 and that I was compensating the wrong thing
02:01 AM Jak_o_Shadows: why #defines rather than you know, normal functions?
02:03 AM rue_mohr: the compiler can simplify out whatever it wants
02:03 AM rue_mohr: faster, inline
02:03 AM rue_mohr: you CANNOT force new compilers to inline things :(
02:04 AM rue_mohr: but because macros are rewritten realtime, the compiler will simplify and inline it
02:04 AM rue_mohr: srry, not real eraltime
02:04 AM rue_mohr: the beforehand realtime
02:06 AM rue_mohr: so, now for isPointOnLine
02:10 AM rue_mohr: must be a good way to break this down for a line segment
02:11 AM rue_mohr: I think I have to do it by working out the distance from the line segment and then thresholding it
02:13 AM rue_mohr: I can test if the point is within the cornering bounds of the line
02:58 AM rue_mohr: OOOooo I can maybe make is point in poly next
03:03 AM rue_mohr: hmm crap
03:47 AM Jak_o_Shadows: I choose to be positive and believe compilers are intelligent
03:47 AM Jak_o_Shadows: this is a wilful deception of msyelf
09:33 AM rue_mohr: you can put inline as many times as you want infront of a 1 line function and it still wont
09:41 AM z64555: :)
09:41 AM z64555: rue
09:41 AM z64555: inline just "suggests" to the compiler that it should inline the function
09:42 AM SpeedEvil: The C compiler has read more of the standard than you have - which doesn't help.
09:42 AM rue_mohr: my point. so I write them as macros
10:08 AM z64555: that doesn't actually help the inline situation. lol
10:42 AM SpeedEvil: I was referring to stuff like if(pointer+1) type of limit checking code, for example.
10:42 AM SpeedEvil: Because C says an overflowed pointer is undefined, so the compiler is free to choose whatever state for that value makes the most code go away
12:12 PM squirrel1 is now known as veverak
04:53 PM sparrowsword: Anyone know of a robotic arm that can cut/open cardboard boxes?
04:54 PM Snert_: a manufactured product or a diy?
04:54 PM sparrowsword: Snert: Either
04:55 PM SpeedEvil: Any robot + box cutter
04:55 PM SpeedEvil: Or do you mean a full vision or whatever solution that properly opens boxes automatically
04:56 PM SpeedEvil: Are these boxes of a consistent size?
04:56 PM sparrowsword: SpeedEvil: what do you recommend to lift a 50kg box?
04:56 PM SpeedEvil: A trolley.
04:56 PM sparrowsword: SpeedEvil: the size for each box varies
04:56 PM anonnumberanon: sparrowsword, all industrial robots can do it. Next question?
04:57 PM sparrowsword: anonnumberanon: was looking for an attachment
04:57 PM sparrowsword: that can use a razor blade or something similar
04:57 PM anonnumberanon: like a box cutter attachment?
04:57 PM sparrowsword: yes
04:57 PM anonnumberanon: for what robot?
04:57 PM sparrowsword: any arm taht can lift the range of 50kg
04:58 PM anonnumberanon: look at robot arms used to manipulate vehicle parts in vehicle assembly lines
04:58 PM anonnumberanon: they're very expensive
04:58 PM sparrowsword: i just dont really know what to call the attachment, to do research on
04:59 PM sparrowsword: anonnumberanon: Thank you.
04:59 PM anonnumberanon: i don't know if you're asking about an attachment or an arm
04:59 PM sparrowsword: both
04:59 PM anonnumberanon: request denied
04:59 PM anonnumberanon: they are not the same thing
04:59 PM SpeedEvil: https://www.amazon.co.uk/Bosch-Professional-Universal-Lithium-Ion-Batteries/dp/B00SCBSIH6/ref=sr_1_20_sspa?ie=UTF8&qid=1510266460&sr=8-20-spons&keywords=box+cutter&psc=1
04:59 PM sparrowsword: they can only work together?
04:59 PM anonnumberanon: robots don't usually use attachments
04:59 PM anonnumberanon: they are made for one purpose
05:00 PM durrf: depends on the robot... thats a very generalized statement!
05:00 PM sparrowsword: the goal is to move box, and then open it
05:00 PM anonnumberanon: durrf, give me an example?
05:01 PM Snert_: sounds like "replace the freight guy that deals with incoming freight".
05:01 PM anonnumberanon: sparrowsword, it's probably time for you to go watch some assembly line videos, find what you want and lookup the robots used in them
05:01 PM anonnumberanon: lol
05:01 PM SpeedEvil: replacing the freight guy might actually be harder then areplacing some of managment
05:02 PM anonnumberanon: lol
05:02 PM durrf: tthose giant fighting robots had swappable weapons j/s
05:02 PM sparrowsword: SpeedEvil: https://www.bagsandpaper.co.uk/wp-content/uploads/2015/02/Caja-Troquelada-CTM021.jpg
05:02 PM sparrowsword: durrf: saw a robotic arm using several attachments to clean some carberators or something
05:03 PM sparrowsword: SpeedEvil: does that knife cut those kind of boxes? jw
05:04 PM sparrowsword: SpeedEvil: replacing the freight crew is 1 step in automizing agriculture
05:04 PM sparrowsword: trying to replace myself
05:05 PM Snert_: they have robot fruit pickers/packers and such
05:06 PM sparrowsword: Snert_: Hmm, havent gotten to the begining steps. Would like to plant/farm automously as well
05:06 PM sparrowsword: delivery shouldnt be too difficult
05:06 PM Snert_: I've seen a planter...waterer....plant tender...I'll see if I can find it
05:08 PM Snert_: https://gizmodo.com/13-fascinating-farming-robots-that-will-feed-our-future-1683489468
05:08 PM Snert_: https://farmbot.io <-- especially cool
05:09 PM sparrowsword: Snert_: Thats awesome :D
05:09 PM Snert_: I'd call mine Budly :)
05:09 PM sparrowsword: haha :P
05:10 PM sparrowsword: Snert_: Thank You :)
05:12 PM sparrowsword: sign me up
05:13 PM Snert_: $2600 for farmbot - not too bad.
05:14 PM sparrowsword: can it be expanded?
05:14 PM Snert_: web site says so
05:15 PM sparrowsword: okay
05:15 PM Snert_: but what their definition of expansion is I dunno.
05:17 PM sparrowsword: This is very exciting! Thank you so much!
05:20 PM anonnumberanon: "that will feed humans of the future" haha that is not totally accurate for the feeding part
05:20 PM anonnumberanon: humans for a long time will be forced to work for money which can buy food
05:21 PM anonnumberanon: these robots will only make food production maybe better and at least use up less human work to produce, there is no relation to whether or not humans will eat more because of it
05:22 PM sparrowsword: my goal is to not make consumers consume more, but rather, allow everyone to consume
05:22 PM Snert_: I've always been against this thing where the U.S pays farmers to not grow food. Something wrong with that.
05:22 PM Tom_L: even non consumers?
05:22 PM anonnumberanon: what country sparrowsword ?
05:22 PM sparrowsword: usa
05:23 PM Tom_L: Snert soil conservation
05:23 PM sparrowsword: Snert_: Yes, indeed
05:23 PM anonnumberanon: sparrowsword, okay, so apparently a large portion of food produced ends up in the trash (50%?), you could work on that and feed effectively twice as many people maybe
05:24 PM Snert_: Tom_L: Yes. But also to artifically keep the price up there.
05:24 PM anonnumberanon: https://www.theatlantic.com/business/archive/2016/07/american-food-waste/491513/
05:24 PM anonnumberanon: "roughly 50%"
05:24 PM sparrowsword: anonnumberanon: i am working against the united nations
05:24 PM Snert_: Tom_L: Africa starves and we pay farmers to not grow food. Disgusting.
05:25 PM anonnumberanon: sparrowsword, it was nice knowing you and rip
05:25 PM anonnumberanon: :)
05:25 PM sparrowsword: they wish to control all food, this is very dangerous, and i am trying to allow people to grow their own food
05:25 PM anonnumberanon: for africa it's a long way away so we should probably make rice
05:25 PM anonnumberanon: or stuff that can conserve
05:25 PM Tom_L: Snert we subsidise the poor here and they buy crack instead
05:26 PM Snert_: lol...yea. Disgusting.
05:27 PM sparrowsword: anonnumberanon: i have a specific organization visiting me on a daily basis, im not scared of the un
05:27 PM Tom_L: no matter how hard we try, this world will never be a perfect place to be
05:27 PM sparrowsword: not perfect, but better
05:27 PM Tom_L: depends how you define better
05:28 PM Tom_L: more advanced is more polution
05:28 PM Tom_L: causing cancer etc
05:28 PM sparrowsword: going against nature is polution
05:28 PM sparrowsword: Tom_L: human longevity project
05:29 PM sparrowsword: there is an alternative..
05:29 PM sparrowsword: to this
05:34 PM anonnumberanon: Tom_L> no matter how hard we try, this world will never be a perfect place to be
05:34 PM anonnumberanon: exactly, because of the human element, refer to drug exemple above
05:34 PM sparrowsword: you are right, we need help, from something other than human
05:34 PM anonnumberanon: i agree
05:34 PM sparrowsword: the cold ai is not what im suggesting..
05:37 PM anonnumberanon: so you want to help africans? or what?
05:38 PM anonnumberanon: :3
05:39 PM sparrowsword: i would like to help rebuild a relationship
05:40 PM veverak: sparrowsword: help from something other than us won't work
05:41 PM veverak: we do not need other to help us
05:41 PM veverak: because that is not possible
05:41 PM veverak: we are programmed to feel the urge to "evolve"
05:41 PM sparrowsword: no...
05:41 PM veverak: and we are programmed to never to be satisfied
05:41 PM veverak: :)
05:42 PM sparrowsword: that is wrong as well
05:42 PM sparrowsword: that is the relationship i speak of, to rebuild
05:42 PM anonnumberanon: i like where this discussion is going..
05:42 PM veverak: as far as my knowledge goes, this can be considered true :)
05:43 PM sparrowsword: indeed, so we have established that your knowledge, mine, and everyone elses is limited, even collectively, still limited
05:44 PM sparrowsword: this points in the direction that we need help from somewhere else
05:44 PM veverak: the limitation of mind does not mak that assertion wrong
05:44 PM sparrowsword: the reason i say its still limited, even collectively, is because we discover new things every day
05:46 PM sparrowsword: its not the limitation of the mind that binds us, its the ability to surrender. we have to believe that someone else knows more than we do, and learn from them
05:47 PM sparrowsword: we also have to believe that there is trust in the source
05:47 PM veverak: we can as well believe that we can learn by ourself without limit
05:48 PM sparrowsword: you can learn new things, but this doesnt make them progressive. the deaf speak, but we dont hear their words
05:48 PM anonnumberanon: or, with only one limit: time
05:49 PM veverak: anonnumberanon: there is time limit for person
05:49 PM veverak: anonnumberanon: however the species itself can last for a really long time ;)
05:49 PM sparrowsword: yes, in this state, we are bound by time, so what is the release?
05:49 PM veverak: each generation advances collective knowledge and finds better ways of passing that knowledge onto new generation
05:49 PM veverak: sparrowsword: release from what?
05:50 PM sparrowsword: the binding of time
05:51 PM veverak: I just explained why that is not problem for us
05:51 PM sparrowsword: its not a problem for the whole, but individually it is
05:51 PM veverak: the fact that one person has limited time, does not mean that species itself has limited time
05:52 PM sparrowsword: the problem with what you purpose is that you say that no-one, with knowledge expanding generation upon generation, will not use destruction of the whole race
05:53 PM veverak: that may happend
05:53 PM sparrowsword: its invevitable for at least 1 to do any specific task, given an eternity
05:53 PM anonnumberanon: oh , we got that covered; see: SpaceX
05:53 PM sparrowsword: already has happened
05:53 PM sparrowsword: oh?
05:53 PM sparrowsword: you are just a spec, in the middle of nothingness?
05:53 PM anonnumberanon: we will become a multiplanetary species soon man
05:53 PM veverak: I do not assert that it can't happend, however I think that chance of self-destruction is small
05:53 PM sparrowsword: no
05:53 PM veverak: :)
05:54 PM anonnumberanon: this will make it a LOT harder for our species to vanish
05:54 PM sparrowsword: elon musk has reached an altitude of 50k feet, the moon files have been destroyed
05:54 PM sparrowsword: we are not going to mars
05:54 PM sparrowsword: we can breach the van allen radiation belt
05:54 PM sparrowsword: cant*
05:54 PM anonnumberanon: you can start to speak like a serious man now
05:55 PM veverak: just more problems to be solved
05:55 PM veverak: :)
05:55 PM sparrowsword: nasa states this...
05:56 PM anonnumberanon: I'm giving you the benefit of the doubt, but so far you sound like a parrot that spends too much time on the wrong side of Youtube.
05:57 PM sparrowsword: Donald Pettit
05:58 PM sparrowsword: elon musk opensourced ai? no... there is 1 page of documentation, this is a specific selection of who can use this technology, people that are already familiar with it, not truly open-sourced
06:12 PM sparrowsword: nasa biography of Don Pettit: https://www.nasa.gov/astronauts/biographies/donald-r-pettit/biography DonPettit TedTalk: https://www.youtube.com/watch?v=uWjdnvYok4I
06:24 PM sparrowsword: yt TedTalk
06:55 PM z64555: er, what just went on here
06:56 PM anonnumberanon: Lol i know right
10:25 PM rue_mohr: sparrowsword, its not the first time he's done that
10:25 PM rue_mohr: I was looking at the electric car tech they "open sourced"
10:25 PM rue_mohr: or was it pattents, anyhow
10:26 PM orlock: rue_mohr: Did i mention my motor conundrum to you?
10:27 PM orlock: 2 motors apparently the same, except one is 4 wire, one is 6 wire?
10:27 PM orlock: apparently one of them has a "low power" mode?
10:27 PM rue_mohr: na
10:28 PM rue_mohr: ohm it, there are 2 coils with a cneter tap on the 6 wire
10:28 PM Tom_itx: little progress tonight
10:28 PM rue_mohr: its for unipolar driing
10:28 PM rue_mohr: yea, I did a few circuit baords, only about half a liter of parts
10:29 PM Tom_itx: i got a patch made for the V cutout on the crossmember
10:29 PM rue_mohr: this "is a point on a line segment" is being difficult
10:29 PM rue_mohr: esp if you try to write in an error margin
10:30 PM rue_mohr: and I'm trying to do it without a thousand trig ops
10:30 PM orlock: rue_mohr: can that be driven as bipolar then?
10:30 PM rue_mohr: yes, just cap off the centre taps
10:31 PM rue_mohr: sit down tonight and ohm it
10:31 PM rue_mohr: |mmm|mmm| |mmm|mmm|
10:31 PM rue_mohr: blue white red green black ornage
10:31 PM rue_mohr: I may only hve black and white correct
10:32 PM rue_mohr: wtf, wait a sec, your like 11 hours out
10:32 PM rue_mohr: "sit down this morning and ohm it out"
10:33 PM rue_mohr: your like gmt+7?
10:33 PM rue_mohr: or -7?
10:33 PM Tom_itx: rue_mohr how come my server didn't change time?
10:33 PM rue_mohr: wow, it must be on the old dst
10:33 PM Tom_itx: debian 8
10:34 PM Tom_itx: i think
10:34 PM rue_mohr: cat /etc/timezone
10:34 PM Tom_itx: cst
10:35 PM rue_mohr: why the hell cant they just express it as the gmt offset
10:35 PM Tom_itx: chicago
10:35 PM Tom_itx: that part is right
10:35 PM rue_mohr: ntpdate pool.ntp.org
10:36 PM Tom_itx: command not found
10:37 PM rue_mohr: apt-get install ntpdate
10:07 PM rue_mohr: both of my fuctions for points and lines, consider the line to be infinate
10:07 PM rue_mohr: which gives false results when the point it not perpendicular to the line
10:08 PM rue_mohr: did that fix it?
10:08 PM Tom_itx: didn't affect the log
10:08 PM Tom_itx: at least not yet
10:09 PM Tom_itx: i'll check it in the morning
10:11 PM Tom_itx: is that supposed to adjust for DST?
10:11 PM rue_mohr: it does eeverything
10:11 PM rue_mohr: if you say 'date' it'll tell you the time
10:12 PM rue_mohr: dont say time or it'll try to time the running of a program
10:12 PM rue_mohr: (!@#$#!#$????)
10:12 PM Tom_itx: Thu Nov 9 22:11:53 CST 2017
10:12 PM Tom_itx: hah
10:12 PM rue_mohr: dunno
10:12 PM rue_mohr: is that right?
10:12 PM Tom_itx: it's 10:13
10:12 PM rue_mohr: 12
10:13 PM rue_mohr: 22
10:13 PM rue_mohr: yup
10:13 PM Tom_itx: maybe the log will pick it up tomorrow
10:14 PM Tom_itx: may try to get my stepper mounts drilled tomorrow
10:14 PM Tom_itx: i'll probably need to tap those holes so i better find out what size bolts nema23 use
10:18 PM rue_mohr: 6 or 8mm
10:21 PM Tom_itx: well which is it???
10:29 PM rue_mohr: I dont recall
10:29 PM rue_mohr: the metric throws off my mental ruler
10:29 PM Tom_itx: http://www.piclist.com/techref/io/stepper/nemasizes.htm
10:30 PM Tom_itx: bolt hole size .195
10:30 PM Tom_itx: is that 5mm?
10:30 PM rue_mohr: zippo:/files/programming/c/libdev/2d2# units .195inch mm
10:30 PM rue_mohr: * 4.953
10:31 PM rue_mohr: nema 18 or 23?
10:31 PM Tom_itx: 23
10:31 PM rue_mohr: hmmm
10:31 PM Tom_itx: i've never heard of an 18
10:32 PM rue_mohr: whats the one on the repraps?
10:32 PM Tom_itx: 17
10:32 PM rue_mohr: heh
10:32 PM Tom_itx: http://www.numberfactory.com/NEMA%20Motor%20Dimensions.htm
10:32 PM Tom_itx: .195 hole so i'll find what fits that hole
10:33 PM Tom_itx: i don't think i should weld the mounts to the frame
10:33 PM Tom_itx: i think i should bolt them so i can adjust it
10:33 PM rue_mohr: yup
10:34 PM Tom_itx: so i should source some metric screws and taps
10:34 PM Tom_itx: i can get 5 and 6mm taps i think
10:35 PM Tom_itx: https://www.applied-motion.com/news/2015/10/how-do-you-mount-step-motor
10:36 PM Tom_itx: looks like 5mm
10:36 PM Tom_itx: if you look under nema 23 on that page
10:36 PM rue_mohr: so from what I can tell, a G23 bulb should run about 170mA and about 60V
10:36 PM rue_mohr: 9W
10:37 PM Tom_itx: i'll see if the hardware store has some 5mm tomorrow
10:38 PM rue_mohr: usually 4, 6, 8
10:38 PM Tom_itx: Mounting holes: four 5.1 mm through holes, 47.14 mm apart
10:38 PM rue_mohr: hmm, 3, 4, 6, 8 for that matter
10:38 PM Tom_itx: for nema 23
10:39 PM Tom_itx: i may just go with US threads on those
10:39 PM Tom_itx: like a #8 or #10 screw
10:39 PM Tom_itx: one of those would be close
10:39 PM rue_mohr: I have the notion I can do photoresist with UV nailpolish
10:39 PM Tom_itx: i have a notion you're right
10:40 PM Tom_itx: she's got an led thing that sets it off in 1 min
10:40 PM rue_mohr: I ordered some
10:40 PM rue_mohr: yea
10:40 PM rue_mohr: and NOBODY doing nails tries photomasking
10:41 PM rue_mohr: so I dont know if you can just wash off the uncured stuff
10:41 PM Tom_itx: walmart sells the junk
10:41 PM rue_mohr: the nearest wall mart is a loooong way away
10:41 PM rue_mohr: and a $100 ferry
10:41 PM Tom_itx: i'd hate to have to take a ferry anywhere
10:41 PM rue_mohr: I dont, I just stay home
10:41 PM Tom_itx: i did take one in savannah once though
10:42 PM Tom_itx: not a big one
10:42 PM Tom_itx: that seems like alot for a boat ride
10:42 PM rue_mohr: http://www.bcferries.com/onboard-experiences/fleet/profile-queen_of_cowichan.html
10:42 PM rue_mohr: not amazing here
10:42 PM Tom_itx: i've been tendered from a ship before though
10:43 PM Tom_itx: gran caymen doesn't have a port so you have to drop anchor a ways out and be tendered in
10:44 PM rue_mohr: http://www.bcferries.com/onboard-experiences/fleet/profile-queen_of_coquitlam.html
10:44 PM rue_mohr: geez I cant remmeber which one we use
10:44 PM rue_mohr: they are always late and catching fire
10:44 PM Tom_itx: they look about the same class
10:45 PM Tom_itx: why do they catch on fire?
10:45 PM Tom_itx: that's not very reassuring
10:45 PM rue_mohr: lots of reasons
10:45 PM rue_mohr: they never burn down
10:46 PM rue_mohr: its usually after maintenance
10:46 PM rue_mohr: or soemthing about someone driving a forklift into the generator?
10:47 PM Tom_itx: do you ever use welding magnets?
10:48 PM Tom_itx: i got a couple the other day to hold 90 deg or 45 etc
10:48 PM rue_mohr: http://www.duaneburnett.com/18559/amazing-video-of-gibsons-vehicle-fire
10:49 PM rue_mohr: their water service wasn't enough, they brought their show to the road
10:49 PM rue_mohr: (its a bc ferries van)
10:49 PM Tom_itx: heh
10:50 PM rue_mohr: I drove by it, broken down, sometime before it caught fire
10:50 PM Tom_itx: looks like one of thoe tall mercedes vans
10:50 PM rue_mohr: sitting there, blocking up traffic
10:50 PM rue_mohr: yup