Skip to content

Hornet 5.0 Software assignment for controls

Notifications You must be signed in to change notification settings

SakuraBlossom/hornet_assignment3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Hornet Homework 3

This is repository contains a ros package called "control_toy". This consists of a simulator that is similar to what was shown. Your job is to design a control algorithm for this simulator.

DO NOT MODIFY "simulator.py".

Zip and email your solution 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

To run the simulator add the package to your catkin workspace. Build the catkin workspace then run:

rosrun control_toy simulator.py

Using the simulator

The simulator publishes the following data in std_msgs/Float64 format:

/simulator/depth
/simulator/setpoint

The simulator subscribes to the following topic (also of std_msgs/Float64 type).

/simulator/thruster

Publishing to this topic will allow you to control the vertical thruster on the orange box.

About

Hornet 5.0 Software assignment for controls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 57.4%
  • Python 42.6%