View unanswered posts | View active topics It is currently Tue Jun 18, 2019 12:43 pm

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Multi-Robot Programming
Author Message
Moderator

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
Multi-Robot Programming
I've been looking through the Multi-Robot wiki, specifically, the Lesson Curriculum page and I am having a bit of trouble understanding Lesson 6, "Sequence of Strings."

1)
The lesson focuses on creating a "Start" and "Stop" sequence commands, but doesn't give an example so I was wondering how one could define that.

2)
Also, after sending multiple strings to another robot, how many strings can the second robot "hold" before it overwrites saved strings. This question is related to the first in that if Robot1 tells Robot2 that "This is the start" and then begins to send a list of commands such as forwardForX encoder clicks, turnLeft, turnRight, .... and the "This is the end of the sequence." How many commands will Robot2 "remember" and will it execute those commands in the order they were given and how?

Thank you

_________________
Eric Smalls
My Projects: http://www.ericsmalls.com/p/my-projects.html

Thu Dec 22, 2011 12:01 pm
Moderator

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
Re: Multi-Robot Programming
Problems Solved.
See Lesson 9: String Array:
http://www.robotc.net/firewiki/index.ph ... ring_Array

 Quote:The lesson focuses on creating a "Start" and "Stop" sequence commands, but doesn't give an example so I was wondering how one could define that.

In order to create start and stop commands we can use a while loop in combination with a String Array.

 Quote:Also, after sending multiple strings to another robot, how many strings can the second robot "hold" before it overwrites saved strings. This question is related to the first in that if Robot1 tells Robot2 that "This is the start" and then begins to send a list of commands such as forwardForX encoder clicks, turnLeft, turnRight, .... and the "This is the end of the sequence." How many commands will Robot2 "remember" and will it execute those commands in the order they were given and how?

Once we collect the strings via the String Array, we can utilize a For-loop to run back through the collected information in its correct order.

_________________
Eric Smalls
My Projects: http://www.ericsmalls.com/p/my-projects.html

Tue Apr 24, 2012 4:25 pm
Rookie

Joined: Wed Jan 22, 2014 4:36 pm
Posts: 2
Re: Multi-Robot Programming
I would like some help with a problem.

I am doing a project to program 2 NXT Robots via Bricx, one master, one slave.

I want to write a program using direct command for the master to comunicate with the slave via Bluetooth.

I can make the sensors work on the master however I can't get the slave's sensors to read anything.

If you would be able to help or point me in the direction of where i could get help with this project it would be much appreciated.

Regards,

Gareth

Wed Jan 22, 2014 4:44 pm
Expert

Joined: Sun Aug 19, 2007 2:43 pm
Posts: 156
Location: New Jersey
Re: Multi-Robot Programming
I wrote a small tutorial for my students - http://www.stormingrobots.com/prod/tutorial/wl.html.

Not sure what you meant your slave controller not reading sensors though . As far as reading sensors, it works identically the same way no matter it is a master controller or slave. I guess you meant bi-directional transfer? i.e. transferring data from the slave controller back to master ? It should work, I have a sample too, but it was written way back in 2009 or so. With the new implementation, I'll have to test that out again. However, is it what you need ?

_________________
==Elizabeth Mabrey

Wed Jan 21, 2015 12:56 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 4 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning