mahaarbo / casclik Goto Github PK
View Code? Open in Web Editor NEWClosed-loop inverse kinematics (CLIK) based on CasADi.
License: MIT License
Closed-loop inverse kinematics (CLIK) based on CasADi.
License: MIT License
Currently PseudoInverseController
only supports 1-D SetConstraints. This stems from how we generate our in_tangent_cone_func
. They're easily defined as 4 if-else's in 1-D, but I can't think of an easy way of doing it in higher dimensions just yet.
If I recall correctly it's just in setup_problem_functions that it is required.
Currently the ModelPredictiveController does not have an initial problem solver. This can be a problem for situations where slack variables are required, or virtual variables. Not as big a problem if you're using IPOPT.
Need some unittests. Minimal tests that can help:
PseudoInverseController has support for virtual vars, but doesn't actually try to solve them once so that they fit.
Modify to allow for just a list of floats/ints and convert them to numpy arrays internally?
in_tc_func = self.get_in_tangent_cone_function(cnstr)
File "/home/mathia/.local/lib/python2.7/site-packages/casclik/controllers/pseudo_inverse.py", line 146, in get_in_tangent_cone_function
["in_tc_"+cnstr.label])
File "/usr/local/lib/python2.7/dist-packages/casadi/casadi.py", line 13690, in __init__
this = _casadi.new_Function(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Function'.
Possible prototypes are:
Function()
Function(str)
Function(Function)
Function(str,[SX],[SX],dict)
Function(str,[MX],[MX],dict)
Function(str,dict:SX,[str],[str],dict)
Function(str,dict:MX,[str],[str],dict)
Function(str,[SX],[SX],[str],[str],dict)
Function(str,[MX],[MX],[str],[str],dict)
You have: '(str,[MX|str],[MX],[str],[str])'
Some error when trying to run tracking_input_marker
A minor speedup can be achieved in the pseudoinversecontroller if we use SX instead of MX.
Aka, make everything SX functions where possible there.
After implementing the MPC, it seems like lifting the initial conditions rather than taking them in as a parameter is a better option and can cause a speed-up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.