Skip to content

hornet8-homework/software_assignment_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Hornet 8.0 Assignment 2

This repository contains a ROS package called "control_toy". This consists of a simulator that is similar to what was shown. Your job is to implement a 1D PID controller to control the orange box (we'll affectionately call it a rocket) in the simulator.

DO NOT MODIFY "simulator.py" (but feel free to take a peek)

Zip and email your solution (just your controller package named yournusnetid_controller) to [email protected]

Getting the simulation up and running

In addition to ROS, this simulation depends on pygame. to install pygame on ubuntu you have two options. Either run:

sudo apt install python-pygame

or

pip install pygame (ROS Melodic)
pip3 install pygame (ROS Noetic)

To run the simulator, add control_toy to your workspace, build the catkin workspace then run:

rosrun control_toy simulator.py
rosrun your_controller yourPIDController.py

Refer to the control_toy readme for details about using the simulator.

A sample controller package with a sample python script has been included for your reference. Create your controller package named yournusnetid_controller, e.g. eXXXXXXX_controller

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published