Giter VIP home page Giter VIP logo

mpc_gazebo's Introduction

Four Wheel Skid Drive using MPC

Four Wheel Skid Drive Simulation in gazebo using linearized unicyclic Model Prodective Control.

Rendered Image


Simulation

cd catkin_ws/src
git clone https://github.com/rishabhdevyadav/MPC_Gazebo
cd ..
catkin_make
source devel/setup.zsh

# Finally launch the simulation
roslaunch skid4wd_description sim_with_controller.launch

The simulation is started in paused state. Resume the simulation by clicking on the play button on the lower panel in Gazebo.


How To Run

  1. Terminal 1st:-
cd catkin_ws
roslaunch skid4wd_description sim_with_controller.launch
  1. Terminal 2nd:-
cd catkin_ws/
source devel/setup.zsh
roscd skid4wd_control
cd scripts/V0_working
python3 MPC.py
  1. Terminal 3rd:-
cd catkin_ws/
source devel/setup.zsh
roscd skid4wd_control
cd scripts/V0_working
python control.py

Note:- For MPC optimization, "cvxpy" has been used which works only with python3, while ROS worls in python2 by default. So "Python Socket" has been used to communicate between MPC.py and control.py.

MPC.py receive current state [x,y,yaw,v,omega] and send new [v, omega].

mpc_gazebo's People

Stargazers

 avatar

Watchers

Rishabh Dev Yadav avatar

Forkers

gdjunnan

mpc_gazebo's Issues

Error with roslaunch skid4wd_description sim_with_controller.launch

Hi! Thank you for your work. When I type roslaunch skid4wd_description sim_with_controller.launch, it returns to me the following errors:
[ERROR] [1648663077.645835511]: No p gain specified for pid. Namespace: /skid4wd/gazebo_ros_control/pid_gains/joint_front_left
[ERROR] [1648663077.646878641]: No p gain specified for pid. Namespace: /skid4wd/gazebo_ros_control/pid_gains/joint_front_right
[ERROR] [1648663077.648027281]: No p gain specified for pid. Namespace: /skid4wd/gazebo_ros_control/pid_gains/joint_rear_left
[ERROR] [1648663077.653682387]: No p gain specified for pid. Namespace: /skid4wd/gazebo_ros_control/pid_gains/joint_rear_right

And, when i start the simulation in Gazebo, the robot doesn't move. Why?
Thank you

Hello

image
Can you tell me how can I use robot steering?I do not have this window

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.