GithubHelp home page GithubHelp logo

michaelnaps / rosmaster_x3_tag Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.23 MB

For the programming and testing of the ROSMASTER x3 in a final project for EC545 at Boston University.

MATLAB 1.36% CMake 21.53% C 6.07% C++ 6.02% Makefile 24.57% Python 35.87% Shell 4.59%

rosmaster_x3_tag's Introduction

EC545: Cyber-Physical Systems

Final Project: ROSMASTER x3 Tag

Branch Name Languages Aim Assumptions
1. soft-test Python testing algorithms complete info: postition, borders, no transfer lag
2. hard-test Python, C++, ROS other programs are 'safe' algorithms that are not being tested will be set to 'safe' outputs
3. master Python, C++, ROS final testing no assumed information

Directory: Simulation

The simulation of the tag-planner is straight forward to run. The CVXOPT Python library must be installed. The simulation can then be run from the root.py executable. When run the user will have two options for the output, and three for the type of environment being implemented.

  1. Threshold Plots:
    • options: polygon-world (p), sphere-world (s) or all-world (a)
  2. Animation:
    • options: polygon-world (p), sphere-world (s) or all-world (a)

Directory: MATLAB

The MATLAB directory contains the Simulink and init.m files which launches the Manager FSM. To launch...

  1. Launch MATLAB and Simulink.
  2. Open the FSM diagram titled game.slx.
  3. Before running the FSM, initialize the game variables by running the init.m script.
  4. The robots must have position data posted to the amcl_pose ROSTOPIC posted before the FSM can be run correctly.
  5. The FSM can now run.

The terminal commands that list the outputs of the FSM are:

  1. rostopic echo bernard_pose
  2. rostopic echo scrappy_pose
  3. rostopic echo oswaldo_pose

Directory: project_ws

This folder communicates directly to the roscore during game run-time. Assuming the roscore and rospkg is initialized properly, and the robots are localizing to the same /map topic, the tag planners can be launched using the following command.

rosrun tag planner.py RobotName __name:=RobotName

Where RobotName is the unique identifier for the robot being launched. Currently, the robots are strictly named bernard, scrappy and oswaldo. All robots that will be playing tag should be launched individually.

rosmaster_x3_tag's People

Contributors

michaelnaps avatar sokaji avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.