Giter VIP home page Giter VIP logo

differential-drive-robot-navigation's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Zain Khan, I am an AI Developer.
  • ๐Ÿ‘€ Iโ€™m interested in Deep Learning, NLP, Accurate Physics Simulation, Legged Robots and Control Systems.
  • ๐ŸŒฑ Iโ€™m currently learning Robotics Simulation and MLOps.

Languages and Tools:

Python C C++ Anaconda Pandas SciKit-Learn Seaborn OpenCV PyTorch tensorflow ONNX TensorRT Git Linux Bash REST API Kafka GRPC Docker Docker Compose LXC GCP Linode DirectX11

My Stats

ย 

differential-drive-robot-navigation's People

Contributors

zainkhan-afk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

differential-drive-robot-navigation's Issues

Example not working like expected

The PID works like expected but I have problems with the MPC. The simulation stuck and on the console I get this warning: scipy/optimize/_optimize.py:353: RuntimeWarning: Values in x were outside bounds during a minimize step, clipping to bounds
What is wrong?

canvas

About the system model and non-quadratic objective function

First of all thank you for sharing this code! But I have a question for this.
The vehicle model you use in car.py is non-linear.

def update_state(self, dt):
		A = np.array([
				[1, 0, 0],
				[0, 1, 0],
				[0, 0, 1]
					])
		B = np.array([
				[np.sin(self.x[2, 0] + np.pi/2)*dt,  0],
				[np.cos(self.x[2, 0] + np.pi/2)*dt,  0],
				[0			 , dt]
					])

		vel = np.array([
					[self.x_dot[0, 0]],
					[self.x_dot[2, 0]]
				])
		self.x = A@self.x + B@vel

In the MPC objective function, you directly use this model to derive all future states within the control hoziron, and use QP to solve it.

x, _ = controller_car.get_state()
z_k[:,i] = [x[0, 0], x[1, 0]]
cost += np.sum(self.Q@((desired_state-z_k[:,i])**2))

But in this case, the objective function is not quadratic, right? (it contains sin(x) ).
Is there any theoretical basis for doing this? Or did I misunderstand something? Hope for your responding, thank you!

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.