robotic 0.2.6__cp38-cp38-manylinux2014_x86_64.whl → 0.2.8.dev0__cp38-cp38-manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of robotic might be problematic. Click here for more details.
- robotic/DataGen.pyi +5 -1
- robotic/_robotic.pyi +76 -25
- robotic/_robotic.so +0 -0
- robotic/include/rai/Control/CtrlTargets.h +3 -3
- robotic/include/rai/Core/array.h +3 -3
- robotic/include/rai/Core/arrayDouble.h +0 -3
- robotic/include/rai/DataGen/rndStableConfigs.h +0 -1
- robotic/include/rai/DataGen/shapenetGrasps.h +2 -0
- robotic/include/rai/Geo/mesh.h +1 -1
- robotic/include/rai/Geo/signedDistanceFunctions.h +1 -1
- robotic/include/rai/Gui/RenderData.h +2 -1
- robotic/include/rai/KOMO/komo.h +1 -0
- robotic/include/rai/KOMO/manipTools.h +12 -10
- robotic/include/rai/KOMO/{opt-benchmarks.h → testProblems_KOMO.h} +36 -0
- robotic/include/rai/Kin/F_geometrics.h +9 -0
- robotic/include/rai/Kin/featureSymbols.h +6 -1
- robotic/include/rai/Kin/frame.h +1 -1
- robotic/include/rai/Kin/kin.h +1 -0
- robotic/include/rai/Kin/simulation.h +1 -0
- robotic/include/rai/Kin/viewer.h +1 -1
- robotic/include/rai/LGP/LGP_Tool.h +6 -6
- robotic/include/rai/Optim/NLP_Sampler.h +4 -4
- robotic/include/rai/Optim/NLP_Solver.h +1 -0
- robotic/include/rai/Optim/SlackGaussNewton.h +54 -0
- robotic/include/rai/Optim/gradient.h +2 -2
- robotic/include/rai/Optim/opt-ipopt.h +1 -1
- robotic/include/rai/Optim/options.h +8 -7
- robotic/include/rai/Optim/{benchmarks.h → testProblems_Opt.h} +33 -16
- robotic/librai.so +0 -0
- robotic/manipulation.py +141 -145
- robotic/meshTool +0 -0
- robotic/rai-robotModels/panda/panda.g +3 -2
- robotic/rai-robotModels/scenarios/ballFinger.g +3 -3
- robotic/rai-robotModels/scenarios/mobilePanda.g +3 -0
- robotic/rai-robotModels/scenarios/pendulum.g +3 -2
- robotic/rai-robotModels/tests/arm.g +7 -7
- robotic/ry-h5info.py +28 -0
- robotic/version.py +1 -1
- {robotic-0.2.6.dist-info → robotic-0.2.8.dev0.dist-info}/METADATA +1 -1
- {robotic-0.2.6.dist-info → robotic-0.2.8.dev0.dist-info}/RECORD +51 -55
- robotic/include/rai/MCTS/env_robert.h +0 -106
- robotic/include/rai/MCTS/problem_BlindBranch.h +0 -47
- robotic/include/rai/MCTS/solver_AStar.h +0 -90
- robotic/include/rai/MCTS/solver_MBTS.h +0 -109
- robotic/include/rai/MCTS/solver_PlainMC.h +0 -58
- robotic/include/rai/MCTS/solver_marc.h +0 -63
- /robotic/include/rai/Geo/{geoOptim.h → testProblems_Geo.h} +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-bot +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-info +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-meshTool +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-test +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-urdf2rai +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-urdf2yaml +0 -0
- {robotic-0.2.6.data → robotic-0.2.8.dev0.data}/scripts/ry-view +0 -0
- {robotic-0.2.6.dist-info → robotic-0.2.8.dev0.dist-info}/LICENSE +0 -0
- {robotic-0.2.6.dist-info → robotic-0.2.8.dev0.dist-info}/WHEEL +0 -0
- {robotic-0.2.6.dist-info → robotic-0.2.8.dev0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* ------------------------------------------------------------------
|
|
2
|
+
Copyright (c) 2011-2024 Marc Toussaint
|
|
3
|
+
email: toussaint@tu-berlin.de
|
|
4
|
+
|
|
5
|
+
This code is distributed under the MIT License.
|
|
6
|
+
Please see <root-path>/LICENSE for details.
|
|
7
|
+
-------------------------------------------------------------- */
|
|
8
|
+
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
#include "options.h"
|
|
12
|
+
#include "NLP.h"
|
|
13
|
+
#include "../Core/util.h"
|
|
14
|
+
|
|
15
|
+
//===========================================================================
|
|
16
|
+
|
|
17
|
+
namespace rai {
|
|
18
|
+
|
|
19
|
+
struct SlackGaussNewton_Options {
|
|
20
|
+
RAI_PARAM("sam/", double, tolerance, .01)
|
|
21
|
+
RAI_PARAM("sam/", double, margin, .0)
|
|
22
|
+
RAI_PARAM("sam/", int, verbose, 2)
|
|
23
|
+
|
|
24
|
+
RAI_PARAM("sam/", int, maxEvals, 50)
|
|
25
|
+
RAI_PARAM("sam/", double, stepMax, .1)
|
|
26
|
+
RAI_PARAM("sam/", double, damping, 1e-2)
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
struct SlackGaussNewton {
|
|
30
|
+
OptOptions opt;
|
|
31
|
+
std::shared_ptr<NLP> nlp;
|
|
32
|
+
|
|
33
|
+
SlackGaussNewton(const shared_ptr<NLP>& _nlp, const arr& x_init={});
|
|
34
|
+
SlackGaussNewton& setOptions(const OptOptions& _opt) { opt = _opt; return *this; }
|
|
35
|
+
std::shared_ptr<SolverReturn> solve();
|
|
36
|
+
|
|
37
|
+
private:
|
|
38
|
+
arr x;
|
|
39
|
+
uint evals=0;
|
|
40
|
+
uint iters=0;
|
|
41
|
+
double step();
|
|
42
|
+
|
|
43
|
+
struct Eval {
|
|
44
|
+
arr x;
|
|
45
|
+
arr phi, J;
|
|
46
|
+
arr err;
|
|
47
|
+
arr s, Js;
|
|
48
|
+
void eval(const arr& _x, SlackGaussNewton& walker);
|
|
49
|
+
} ev;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//===========================================================================
|
|
53
|
+
|
|
54
|
+
}
|
|
@@ -50,12 +50,12 @@ struct Rprop {
|
|
|
50
50
|
unique_ptr<struct sRprop> self;
|
|
51
51
|
Rprop();
|
|
52
52
|
~Rprop();
|
|
53
|
-
void init(double initialStepSize=1., double minStepSize=1e-6, double
|
|
53
|
+
void init(double initialStepSize=1., double minStepSize=1e-6, double stepMaxSize=50.);
|
|
54
54
|
bool step(arr& x, const ScalarFunction& f);
|
|
55
55
|
uint loop(arr& x, const ScalarFunction& f, double stoppingTolerance=1e-2, double initialStepSize=1., uint maxIterations=1000, int verbose=0);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
inline uint optRprop(arr& x, const ScalarFunction& f, rai::OptOptions opt=DEFAULT_OPTIONS) {
|
|
59
|
-
return Rprop().loop(x, f, opt.stopTolerance, opt.
|
|
59
|
+
return Rprop().loop(x, f, opt.stopTolerance, opt.stepInit, opt.stopEvals, opt.verbose);
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -23,21 +23,22 @@ struct OptOptions {
|
|
|
23
23
|
RAI_PARAM("opt/", int, stopInners, 1000)
|
|
24
24
|
RAI_PARAM("opt/", int, stopOuters, 1000)
|
|
25
25
|
RAI_PARAM("opt/", int, stopLineSteps, 10)
|
|
26
|
-
RAI_PARAM("opt/", int, stopTinySteps,
|
|
27
|
-
RAI_PARAM("opt/", double,
|
|
28
|
-
RAI_PARAM("opt/", double,
|
|
29
|
-
RAI_PARAM("opt/", double,
|
|
30
|
-
RAI_PARAM("opt/", double, damping, 1.)
|
|
26
|
+
RAI_PARAM("opt/", int, stopTinySteps, 4)
|
|
27
|
+
RAI_PARAM("opt/", double, stepInit, 1.)
|
|
28
|
+
RAI_PARAM("opt/", double, stepMin, -1.)
|
|
29
|
+
RAI_PARAM("opt/", double, stepMax, .2)
|
|
31
30
|
RAI_PARAM("opt/", double, stepInc, 1.5)
|
|
32
31
|
RAI_PARAM("opt/", double, stepDec, .5)
|
|
32
|
+
RAI_PARAM("opt/", double, damping, 1.)
|
|
33
33
|
RAI_PARAM("opt/", double, wolfe, .01)
|
|
34
|
-
RAI_PARAM("opt/", bool, boundedNewton, true)
|
|
35
34
|
RAI_PARAM("opt/", double, muInit, 1.)
|
|
36
35
|
RAI_PARAM("opt/", double, muInc, 5.)
|
|
37
36
|
RAI_PARAM("opt/", double, muMax, 1e4)
|
|
38
37
|
RAI_PARAM("opt/", double, muLBInit, .1)
|
|
39
38
|
RAI_PARAM("opt/", double, muLBDec, .2)
|
|
40
|
-
RAI_PARAM("opt/", double,
|
|
39
|
+
RAI_PARAM("opt/", double, lambdaMax, -1.)
|
|
40
|
+
RAI_PARAM("opt/", double, interiorPadding, 1e-2)
|
|
41
|
+
RAI_PARAM("opt/", bool, boundedNewton, true)
|
|
41
42
|
RAI_PARAM_ENUM("opt/", ConstrainedMethodType, constrainedMethod, augmentedLag)
|
|
42
43
|
// void write(std::ostream& os) const;
|
|
43
44
|
};
|
|
@@ -83,24 +83,19 @@ struct NLP_RandomLP : NLP {
|
|
|
83
83
|
|
|
84
84
|
//===========================================================================
|
|
85
85
|
|
|
86
|
-
struct
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
struct BoxNLP : NLP {
|
|
87
|
+
BoxNLP();
|
|
88
|
+
void evaluate(arr& phi, arr& J, const arr& x);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
//===========================================================================
|
|
91
92
|
|
|
93
|
+
struct ModesNLP : NLP {
|
|
94
|
+
arr cen;
|
|
95
|
+
arr radii;
|
|
96
|
+
|
|
97
|
+
ModesNLP();
|
|
92
98
|
void evaluate(arr& phi, arr& J, const arr& x);
|
|
93
|
-
void getFHessian(arr& H, const arr& x);
|
|
94
|
-
// virtual uint dim_g(){
|
|
95
|
-
// if(which==randomLinear) return ;
|
|
96
|
-
// if(which==wedge2D) return n;
|
|
97
|
-
// if(which==circleLine2D) return 1;
|
|
98
|
-
// return 2;
|
|
99
|
-
// }
|
|
100
|
-
// virtual uint dim_h(){
|
|
101
|
-
// if(which==circleLine2D) return 1;
|
|
102
|
-
// return 0;
|
|
103
|
-
// }
|
|
104
99
|
};
|
|
105
100
|
|
|
106
101
|
//===========================================================================
|
|
@@ -210,3 +205,25 @@ struct NLP_CircleLine : NLP {
|
|
|
210
205
|
}
|
|
211
206
|
};
|
|
212
207
|
|
|
208
|
+
//===========================================================================
|
|
209
|
+
|
|
210
|
+
struct ChoiceConstraintFunction : NLP {
|
|
211
|
+
enum WhichConstraint { none=0, wedge2D=1, halfcircle2D, randomLinear, circleLine2D, boundConstrained, boundConstrainedIneq } which;
|
|
212
|
+
uint n;
|
|
213
|
+
arr randomG;
|
|
214
|
+
ChoiceConstraintFunction();
|
|
215
|
+
|
|
216
|
+
void evaluate(arr& phi, arr& J, const arr& x);
|
|
217
|
+
void getFHessian(arr& H, const arr& x);
|
|
218
|
+
// virtual uint dim_g(){
|
|
219
|
+
// if(which==randomLinear) return ;
|
|
220
|
+
// if(which==wedge2D) return n;
|
|
221
|
+
// if(which==circleLine2D) return 1;
|
|
222
|
+
// return 2;
|
|
223
|
+
// }
|
|
224
|
+
// virtual uint dim_h(){
|
|
225
|
+
// if(which==circleLine2D) return 1;
|
|
226
|
+
// return 0;
|
|
227
|
+
// }
|
|
228
|
+
};
|
|
229
|
+
|
robotic/librai.so
CHANGED
|
Binary file
|