To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 22639 (-20)
  Re: bitwise manipulations in C
 
Hi Thanks for all the responses, especially yours steve, they gave me lots of ideas. Does anybody have code examples of using bits and bit manipulations with NQC? Thanks, Scott ___...___ On the road to retirement? Check out MSN Life Events for (...) (22 years ago, 7-Aug-04, to lugnet.robotics)
 
  Re: bitwise manipulations in C
 
(...) Hi Scott, Steve summed it up well. Here's a fairly simple example: (URL) processes data from a LEGO remote control, which arrives every few ms as a "bit mask", with each 1 bit representing a pressed key on the remote. If you look in (...) (22 years ago, 6-Aug-04, to lugnet.robotics)
 
  Re: bitwise manipulations in C
 
(...) There really isn't a lot to tell. All integers (short's, chars) in C are considered as a bunch of bits. You can use the '&', '|', '^', '~', '<<' and '>>' operators to AND, OR, XOR, INVERT, Up-shift and Down-shift all of the bits at once. (...) (...) (22 years ago, 6-Aug-04, to lugnet.robotics)
 
  bitwise manipulations in C
 
Hi, Can anybody tell me about bitwise manipulations or point me to a site that explains what it is, what its used for, and how to use it? thanks, Scott ___...___ Express yourself instantly with MSN Messenger! Download today - it's FREE! (URL) (22 years ago, 6-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Actually, I think it would be a good idea to use pneumatics to push the bricks together. Any resistance met by pneumatics simply increases the air pressure required to keep pushing, rather than actually damaging any pieces. (...) Why do you (...) (22 years ago, 6-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) One could cheat (if you consider it that) on this pretty easily, though. Instead of hoppers containing a jumble of bricks, each feedstock source could be a neat queue of bricks in a constant orientation. Grabbing the next brick from such a (...) (22 years ago, 6-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) No - you'd just use a touch sensor that you could lower down onto the model you are 'scanning' - it would be easy enough to measure whether there was a hole or a brick. (...) The Lego camera isn't really much use because it can't talk to the (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Almost impossible. Personally, I'd have a hard time building this with my hands, much less building a robot to do it. It could easily require three grippers just to put the pieces together. Definitely beyond anything I'd be interesting in (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Why would that be impossible? You'd start by building up the sides; when you've done row B, then you can attach the block in row C, followed by the one in row D. So yes, this means the robot has to be able to move back and forth; it can't just (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) I'm sorry, but I find this VERY funny. :) But you've already said how little you really know about building, so I guess it's OK. A robot that could copy a continuous model is something that would be very do-able. On the other hand, if you (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
I think you should start easy, with something like a mosaic copier. (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Except that this is a problem pretty easily solved in code -- it's not necessary that the robot choose the same solution the original builder did; it's only necessary that it choose a solution that works. A robot that copies only continuous (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Ah, hmm, I was expecting it to be a continuous fabric, not a holey one. That would make it harder, and in fact makes it even more important to not confuse neighboring pieces of the same color (otherwise you could lose structural integrity by (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Yes, but not arbitrarily -- there would be some limit in width (Y) and height (Z), in order for the model to fit into the machine. (...) Yes, that's a much harder problem, which is why I was thinking to limit it to a thickness of one in X. (...) (22 years ago, 5-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) Okay... I think I understand... so you use some 1xN plates or bricks on the top and the bottom of the whole "picture" to hold it together, and the actual construct built can be any size of width N? Or am I still way out there? >> Mark (22 years ago, 4-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) OK, just to clarify: assume an X-Y-Z space with studs sticking up in the Z direction. You mean a model that's only one stud thick in X, arbitrarily wide in Y, and arbitrarily high in Z? Yes, that would be a much simpler problem than what I was (...) (22 years ago, 4-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) The closest I got to something like that was my half-built Duck Assembly Carousel - a dial automation with 4 positions, which would assemble the body (2x1 inverted slope), beak (2x1 plate), and head (1x1 brick with a hole in it). I didn't have (...) (22 years ago, 4-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
Would the bricks be assembled as a wall one brick thick on its side? Like laying a cinderblock wall on its side then creating a copy? That might be done with an X-Y table arrangement with vice like sides at top and bottom of the bricks so that they (...) (22 years ago, 4-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) There are some clever tricks (diff & ratchet/clutch, muxes) to expand it somewhat for some applications, but in general, yes, a single RCX can drive only three independent pulse-width modulated polarity reversible 9V outputs. -SMQ Shawn (...) (22 years ago, 4-Aug-04, to lugnet.robotics)
 
  Re: challenge: LEGO copier
 
(...) No, I meant stuck to each other. (...) That's what I had in mind too. (...) I was assuming the use of a camera, not the LEGO light sensor. But using the light sensor is a clever idea. (...) Here I expose my complete cluelessness with regard to (...) (22 years ago, 4-Aug-04, to lugnet.robotics)

Next Page:  5 more | 10 more | 20 more
Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR