Coder Social home page Coder Social logo

jeffwang-zxw20 / motionplanningcontrol_git Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liatli/motionplanningcontrol_git

0.0 0.0 0.0 6 KB

Codes for paper "Bottom-level motion control for robotic fish to swim in groups: modeling and experiments"

MATLAB 100.00%

motionplanningcontrol_git's Introduction

MotionPlanningControl_git

Codes for paper "Bottom-level motion control for robotic fish to swim in groups: modeling and experiments"

Run "MotionPlaningControl.m" for Fig9, "MotionPlaningControl2.m" for Fig10, and "MotionPlaningControl3.m" for Fig11.

If you just want to use our model, you just need to use this part:

    sol=ode45(@Equation2 ,[t ,t + dt] ,...
        [0.12, 0 ,0, 1.0, X,108680.61e-7]);
    ndt = size(sol.y,2);
    for ii = 1:size(sol.y,2)
        p.w(end+1)=p.w(end)+dt/ndt*deval(sol,sol.x(ii),3);
        p.x(end+1)=p.x(end)+dt/ndt*cos(p.w(end))*(deval(sol,sol.x(ii),1) - 0.12)...
            -dt/ndt*sin(p.w(end))*deval(sol,sol.x(ii),2);
        p.y(end+1)=p.y(end)+dt/ndt*sin(p.w(end))*(deval(sol,sol.x(ii),1) - 0.12)...
            +dt/ndt*cos(p.w(end))*deval(sol,sol.x(ii),2);
    end

References:

If you use this code or data we kindly as that you please cite Li et al, 2019

Please check out the following references for more details:

@article{li2019bottom,
        title={Bottom-level motion control for robotic fish to swim in groups: modeling and experiments},
        author={Li, Liang and Liu, Anquan and Wang, Wei and Ravi, Sridhar and Fu, Rubin and Yu, Junzhi and Xie, Guangming},
        journal={Bioinspiration \& biomimetics},
        volume={14},
        number={4},
        pages={046001},
        year={2019},
        publisher={IOP Publishing}}

motionplanningcontrol_git's People

Contributors

liatli 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.