Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Author: Sean Chung

Robot-Simulator

Display robots that are created through UDP request-response cycles and threads.

Minimum Requirements

  • OS that allows compilation of C programs
  • Compiler

Tools

  • GDB debugger
  • Valgrind
  • Gcc compiler
  • Gedit

Features

  • Robots are spawned in an environment server, with random mobility. Upon contact with another robot, the robot will: (1) turn 15 degrees in a direction to find open space. (2) Continue down that path until contact is made.
  • A maximum of 20 robots are allowed to spawn in the enviornment.
  • Informs us of the coordinates where the robot spawns in the terminal
  • If the spawn space for a robot is in contact with another robot, the spawning space for the robot will change.
  • Gracefully closes the environment upon shutdown protocol.

Compiling Instructions

  • (1): Download all files included in this repository.
  • (2): Open the terminal and cd into the proper directory.
  • (3): Type 'make' into the terminal and wait for the compiler.
  • (4): We can now run the executable by doing './environmentServer&' in the terminal. An empty window should appear on your screen.
  • (5): At this point, it will have started the environmentServer in the background. Go to the terminal and create a robot by typing: "./robotClient&" in the terminal.
  • (6): We can now add up to 20 robots by repeating step 5 individually.
  • (7): Shutdown the server by typing './stop' in the terminal. Press enter once.
  • PS: Typing 'make clean' in the terminal will remove all object files created through this program.

About

Create multiple robots using multiple threads!

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages