Giter Club home page Giter Club logo

actuatordynamics's Introduction

actuatorDynamics

This is the repository for example MATLAB code to simulate a spring mass damper. It was created for Oregon State University's ROB 542: Actuator Dynamics class (formerly ME 536). It is based off Andrew Peekmea's code but is heavily modified and extended.

This repo contains some basic utilities (groupTheory and visualization) and three examples of simulating dynamic systems. More information on each example can be found in the readme in their respective folder.

This example simulated a damped spring mass in the presence of an external force.

This example illustrates:

  • Basic usage of ODE45().
  • Use of the solution results structure and deval() function to sample the resulting solution.
  • Binding parameters to an anonymous function for use as the dynamics.
  • Use of a structure for dynamics parameters.
  • Animation using our visualization interfaces and transformations.
  • Exporting a video file using MATLAB's VideoWriter().

Example 2: Control

This example simulated a point mass with viscous friction moving in 2D under the influence of a 2D control force.

This example illustrates:

  • An approach to seperate command trajectory, controller and system dynamics into seperate functions.

Example 3: Hybrid Simulation

This example simulated a puck under the influence of a constant force that bounces between a moving paddle and a stationary ceiling. The paddle moves with prescribed sinusoidal motion, which can be thought of as having infinite mass and a infinitely strong actuator moving it.

This example illustrates:

  • Use of event functions to halt ODE45().
  • Differentiating between different events.
  • Use of sampled results from ODE45() instead of the solution structure.
  • Application of hybrid jump maps for impact events.
  • Interpolating sampled results for animation.

actuatordynamics's People

Contributors

greenkev avatar

Stargazers

 avatar  avatar Roy Xing avatar Tony Le avatar Kyle Mathenia avatar

Watchers

James Cloos avatar  avatar

Forkers

edbatk capprin

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.