Rover group header file.
5 posters
Page 1 of 1
Rover group header file.
Here is our current header file, draft. If we update this later I will post the update here.
//File: Rover.h
//Purpose: Provides the interface to execute commands on the robot
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 1/26/09
//public class Rover {
//Returns true if able to execute the action
public bool moveOffset(int );
public bool turnOffset(int );
public bool moveCoord(vector );
public bool turnGlobal(float );
//Returns True if bot is occupied with an action
public bool isAction();
//Used to stop and restart all actions on the rover
public void killActions();
public void unkillActions();
//Depending on interfacing with the communications group
public void recieveCommand();
//}
//File: Rover.h
//Purpose: Provides the interface to execute commands on the robot
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 1/26/09
//public class Rover {
//Returns true if able to execute the action
public bool moveOffset(int );
public bool turnOffset(int );
public bool moveCoord(vector );
public bool turnGlobal(float );
//Returns True if bot is occupied with an action
public bool isAction();
//Used to stop and restart all actions on the rover
public void killActions();
public void unkillActions();
//Depending on interfacing with the communications group
public void recieveCommand();
//}
making- Posts : 35
Join date : 2009-01-08
Re: Rover group header file.
Sorry for taking so long to post the finalized header file. When i got to the appartment last night i found out our cable and internet had been knocked out... It still isn't up . I hope this doesn't throw us off schedule.
//File: Rover.h
//Purpose: Provides the interface to execute commands on the robot
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 1/30/09
class Rover {
public:
//Moves forward at a constant speed, one tick.
//Returns true if command was executed
bool moveForward();
//Moves backwards at a constant speed, one tick.
//Returns true if command was executed
bool moveBackward();
//Turns left at a constant speed, one tick.
//Returns true if command was executed
bool turnLeft();
//Turns right at a constant speed, one tick.
//Returns true if command was executed
bool turnRight();
//Global Turn and move actions, based on 2D coordinate system
bool moveCoord(vector );
bool turnCoord(float );
//Returns True if bot is occupied with an action
bool isAction();
//Used to stop and restart all actions on the rover
void killActions();
void unkillActions();
//Queues a command, for action, recieved from the communication group
void recieveCommand();
private:
//Returns true if able to execute the action
bool moveOffset(int );
bool turnOffset(int );
}
//File: Rover.h
//Purpose: Provides the interface to execute commands on the robot
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 1/30/09
class Rover {
public:
//Moves forward at a constant speed, one tick.
//Returns true if command was executed
bool moveForward();
//Moves backwards at a constant speed, one tick.
//Returns true if command was executed
bool moveBackward();
//Turns left at a constant speed, one tick.
//Returns true if command was executed
bool turnLeft();
//Turns right at a constant speed, one tick.
//Returns true if command was executed
bool turnRight();
//Global Turn and move actions, based on 2D coordinate system
bool moveCoord(vector );
bool turnCoord(float );
//Returns True if bot is occupied with an action
bool isAction();
//Used to stop and restart all actions on the rover
void killActions();
void unkillActions();
//Queues a command, for action, recieved from the communication group
void recieveCommand();
private:
//Returns true if able to execute the action
bool moveOffset(int );
bool turnOffset(int );
}
making- Posts : 35
Join date : 2009-01-08
An UML example
Here is a link to a website demonstrating a simple example of UML:
http://www.geocities.com/siliconvalley/network/1582/uml-example.htm
http://www.geocities.com/siliconvalley/network/1582/uml-example.htm
Dustin- Posts : 17
Join date : 2009-01-08
Re: Rover group header file.
//Global Turn and move actions, based on 2D coordinate system
bool moveCoord(vector );
bool turnCoord(float );
I dont think the gui knows about all these functions. You all should get with them and let them know you want to implement these other functions.
-Comm Group
dsmarsh- Posts : 54
Join date : 2009-01-08
Age : 38
Re: Rover group header file.
a "move to coordinates" is not going to be practical. There is no way we would have to establish a coordinate system, and then to be able to move based on that.dsmarsh wrote://Global Turn and move actions, based on 2D coordinate system
bool moveCoord(vector );
bool turnCoord(float );
I dont think the gui knows about all these functions. You all should get with them and let them know you want to implement these other functions.
-Comm Group
rbontre- Posts : 59
Join date : 2009-01-08
Re: Rover group header file.
The global move and turn functions are not for the comm group, or gui group. They are for us incase we have time to implement autoplay, and are entirely optional at this point. You guys should not worry about those functions.
making- Posts : 35
Join date : 2009-01-08
Re: Rover group header file.
--API for comm to rover group--
Let me know if these are the commands that you want from the gui, if you need more let me know and we can discuss them.
- Code:
/*
ECE 453 - Spring 2009
Communication group
Rover API
Describes the application programming interface between the communication
group and rover movement applications.
*/
//This is the API the rover is using since it will be all in the same header file.
//We just call the functions
//Moves forward at a constant speed, one tick.
//Returns true if command was executed
bool moveForward();
//Moves backwards at a constant speed, one tick.
//Returns true if command was executed
bool moveBackward();
//Turns left at a constant speed, one tick.
//Returns true if command was executed
bool turnLeft();
//Turns right at a constant speed, one tick.
//Returns true if command was executed
bool turnRight();
Let me know if these are the commands that you want from the gui, if you need more let me know and we can discuss them.
dsmarsh- Posts : 54
Join date : 2009-01-08
Age : 38
Re: Rover group header file.
You guys are going to want to have the kill and unkill commands incase you want to stop the robot and restart him remotly. From running into a wall or stopping movement after a dart hit.
making- Posts : 35
Join date : 2009-01-08
Re: Rover group header file.
making wrote:You guys are going to want to have the kill and unkill commands incase you want to stop the robot and restart him remotly. From running into a wall or stopping movement after a dart hit.
That is fine but we dont call these things, the gui group calls them and these thing are not in the gui groups API with us
Thus they will never be called.
dsmarsh- Posts : 54
Join date : 2009-01-08
Age : 38
Re: Rover group header file.
Here is our final header file. NOTE: the initialize and uninitialize commands may or may not need to be called by the gui/comm group to start and shutdown the robots.
- Code:
//File: Rover.h
//Purpose: Provides the interface to execute commands on the robot
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 1/30/09
class Rover {
public:
//Initializes the robot to prepare to move. Needs to be called only once.
void initialize();
//Unititalizes the robot to prepare to shut down. Needs to be called only once.
void uninitialize();
//Moves forward at a constant speed, one tick.
//Returns true if command was executed
bool moveForward();
//Moves backwards at a constant speed, one tick.
//Returns true if command was executed
bool moveBackward();
//Turns left at a constant speed, one tick.
//Returns true if command was executed
bool turnLeft();
//Turns right at a constant speed, one tick.
//Returns true if command was executed
bool turnRight();
//Global Turn and move actions, based on 2D coordinate system
bool moveCoord(vector );
bool turnCoord(float );
//Returns True if bot is occupied with an action
bool isAction();
//Used to stop and restart all actions on the rover
void killActions();
void unkillActions();
//Queues a command, for action, recieved from the communication group
void recieveCommand();
private:
//Returns true if able to execute the action
bool moveOffset(int );
bool turnOffset(int );
}
making- Posts : 35
Join date : 2009-01-08
Re: Rover group header file.
Michael after talking to the comm group I understand this is a good headfile, but we need an API, just what we are calling
mainly we need
moveforward
movebackward
moveleft
moreright
stopmove
i think that is basically what we need from you....
your header file is convoluted and confusing for us...
mainly we need
moveforward
movebackward
moveleft
moreright
stopmove
i think that is basically what we need from you....
your header file is convoluted and confusing for us...
Re: Rover group header file.
seanc wrote:Michael after talking to the comm group I understand this is a good headfile, but we need an API, just what we are calling
mainly we need
moveforward
movebackward
moveleft
moreright
stopmove
i think that is basically what we need from you....
your header file is convoluted and confusing for us...
I agree
this is your api with the comm group:
- Code:
class Rover {
public:
//Moves forward at a constant speed, one tick.
//Returns true if command was executed
bool moveForward();
//Moves backwards at a constant speed, one tick.
//Returns true if command was executed
bool moveBackward();
//Turns left at a constant speed, one tick.
//Returns true if command was executed
bool turnLeft();
//Turns right at a constant speed, one tick.
//Returns true if command was executed
bool turnRight();
//stops any current movement
//Returns true if command was executed
bool stopMoving();
}
dsmarsh- Posts : 54
Join date : 2009-01-08
Age : 38
Similar topics
» Rover Group and Sensor Group API and Stub code
» Rover group needs.
» Rover group's stub code
» Rover group meetup times.
» Rover wrapper brainstormin
» Rover group needs.
» Rover group's stub code
» Rover group meetup times.
» Rover wrapper brainstormin
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum