Jump to content

Programming interactions between robots

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
ThemePark

ThemePark

    Programmer

  • Members
  • PipPipPipPip
  • 124 posts
I've been reading a book called The Robot Builder's Bonanza, and in that book there is a short chapter called Multiple Robot Interaction. One of the methods mentioned is a Queen/Drone type, where one robot tells the other robots what to do.

Suppose I want to program something like that. But how would I make them able to communicate with each other, without any other robots but the queen's drones picking up on the communication, i.e. avoiding interference or having other robots act in ways they aren't supposed to. The only way I've been able to think about is through internet or local networks, assigning each robot with a unique IP address in the 192.168 range. But that limits the number of robots quite a bit, and it seems like overkill for this situation.

So what programming techniques or algorithms are used for multiple robots communicating?

#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
You could use a database have a "to" field basically like a PM system. Assign each robot a name.

Do you already have some bots I am sure if you posted some code we would love to digest it.

#3
ThemePark

ThemePark

    Programmer

  • Members
  • PipPipPipPip
  • 124 posts
No, I haven't actually made any bots. Right now I'm just in the learning phase. But how exactly do I send and receive information between robots? How could I program "Send this information to the robot by this name"?

Edit:
Come to think of it, there's Bluetooth and infrared connections, which I assume, don't use an IP address. But then the question is, which is better, or more commonly used?

Edited by ThemePark, 24 June 2009 - 03:25 AM.


#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Ir is unidirectional and has a connectivity range of about a meter. Bluetooth is omnidirectional and has a connectivity range of about ten meters. Bluetooth was invented to solve many of the issues associated with IrDA like the two mentioned above. From my experience, Bluetooth is harder to work with though it does provide some benefits over Ir. If you only need unidirectional (Queen to Drone) and only intend on the drones operating within a meter of the queen, make your life easier and use Ir.