robotic 0.3.4.dev3__cp312-cp312-manylinux2014_x86_64.whl → 0.3.4.dev4__cp312-cp312-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/_robotic.pyi CHANGED
@@ -1492,10 +1492,13 @@ class OptMethod:
1492
1492
  NelderMead
1493
1493
 
1494
1494
  CMA
1495
+
1496
+ ES
1495
1497
  """
1496
1498
  AugmentedLag: typing.ClassVar[OptMethod] # value = <OptMethod.AugmentedLag: 5>
1497
1499
  CMA: typing.ClassVar[OptMethod] # value = <OptMethod.CMA: 18>
1498
1500
  Ceres: typing.ClassVar[OptMethod] # value = <OptMethod.Ceres: 14>
1501
+ ES: typing.ClassVar[OptMethod] # value = <OptMethod.ES: 19>
1499
1502
  GradientDescent: typing.ClassVar[OptMethod] # value = <OptMethod.GradientDescent: 1>
1500
1503
  Ipopt: typing.ClassVar[OptMethod] # value = <OptMethod.Ipopt: 12>
1501
1504
  LBFGS: typing.ClassVar[OptMethod] # value = <OptMethod.LBFGS: 3>
@@ -1506,7 +1509,7 @@ class OptMethod:
1506
1509
  Newton: typing.ClassVar[OptMethod] # value = <OptMethod.Newton: 4>
1507
1510
  Rprop: typing.ClassVar[OptMethod] # value = <OptMethod.Rprop: 2>
1508
1511
  SquaredPenalty: typing.ClassVar[OptMethod] # value = <OptMethod.SquaredPenalty: 8>
1509
- __members__: typing.ClassVar[dict[str, OptMethod]] # value = {'none': <OptMethod.none: 0>, 'GradientDescent': <OptMethod.GradientDescent: 1>, 'Rprop': <OptMethod.Rprop: 2>, 'LBFGS': <OptMethod.LBFGS: 3>, 'Newton': <OptMethod.Newton: 4>, 'AugmentedLag': <OptMethod.AugmentedLag: 5>, 'LogBarrier': <OptMethod.LogBarrier: 6>, 'slackGN_logBarrier': <OptMethod.slackGN_logBarrier: 7>, 'SquaredPenalty': <OptMethod.SquaredPenalty: 8>, 'singleSquaredPenalty': <OptMethod.singleSquaredPenalty: 9>, 'slackGN': <OptMethod.slackGN: 10>, 'NLopt': <OptMethod.NLopt: 11>, 'Ipopt': <OptMethod.Ipopt: 12>, 'slackGN_Ipopt': <OptMethod.slackGN_Ipopt: 13>, 'Ceres': <OptMethod.Ceres: 14>, 'LSZO': <OptMethod.LSZO: 15>, 'greedy': <OptMethod.greedy: 16>, 'NelderMead': <OptMethod.NelderMead: 17>, 'CMA': <OptMethod.CMA: 18>}
1512
+ __members__: typing.ClassVar[dict[str, OptMethod]] # value = {'none': <OptMethod.none: 0>, 'GradientDescent': <OptMethod.GradientDescent: 1>, 'Rprop': <OptMethod.Rprop: 2>, 'LBFGS': <OptMethod.LBFGS: 3>, 'Newton': <OptMethod.Newton: 4>, 'AugmentedLag': <OptMethod.AugmentedLag: 5>, 'LogBarrier': <OptMethod.LogBarrier: 6>, 'slackGN_logBarrier': <OptMethod.slackGN_logBarrier: 7>, 'SquaredPenalty': <OptMethod.SquaredPenalty: 8>, 'singleSquaredPenalty': <OptMethod.singleSquaredPenalty: 9>, 'slackGN': <OptMethod.slackGN: 10>, 'NLopt': <OptMethod.NLopt: 11>, 'Ipopt': <OptMethod.Ipopt: 12>, 'slackGN_Ipopt': <OptMethod.slackGN_Ipopt: 13>, 'Ceres': <OptMethod.Ceres: 14>, 'LSZO': <OptMethod.LSZO: 15>, 'greedy': <OptMethod.greedy: 16>, 'NelderMead': <OptMethod.NelderMead: 17>, 'CMA': <OptMethod.CMA: 18>, 'ES': <OptMethod.ES: 19>}
1510
1513
  greedy: typing.ClassVar[OptMethod] # value = <OptMethod.greedy: 16>
1511
1514
  none: typing.ClassVar[OptMethod] # value = <OptMethod.none: 0>
1512
1515
  singleSquaredPenalty: typing.ClassVar[OptMethod] # value = <OptMethod.singleSquaredPenalty: 9>
robotic/_robotic.so CHANGED
Binary file
@@ -65,29 +65,6 @@ struct CameraView : ConfigurationViewer {
65
65
 
66
66
  //===========================================================================
67
67
 
68
- struct Sim_CameraView : Thread {
69
- Var<rai::Configuration> model;
70
-
71
- //-- outputs
72
- Var<byteA> color;
73
- Var<floatA> depth;
74
-
75
- //-- internal
76
- CameraView V;
77
-
78
- Sim_CameraView(Var<rai::Configuration>& _kin,
79
- Var<byteA> _color,
80
- Var<floatA> _depth,
81
- double beatIntervalSec=-1., const char* _cameraFrameName=nullptr, bool _idColors=false, const byteA& _frameIDmap= {});
82
- ~Sim_CameraView();
83
-
84
- void step();
85
-
86
- arr getFxycxy();
87
- };
88
-
89
- //===========================================================================
90
-
91
68
  void simulateDepthNoise(floatA& depth, const floatA& depth2, double offset, const arr& fxycxy, shared_ptr<DepthNoiseOptions> opt);
92
69
 
93
70
  }
@@ -10,6 +10,8 @@
10
10
 
11
11
  #include "NLP.h"
12
12
 
13
+ namespace rai {
14
+
13
15
  struct NLoptInterface {
14
16
  shared_ptr<NLP> P;
15
17
  arr x, phi_x, J_x;
@@ -28,3 +30,5 @@ struct NLoptInterface {
28
30
  static double _g(const std::vector<double>& _x, std::vector<double>& _grad, void* f_data);
29
31
  static double _h(const std::vector<double>& _x, std::vector<double>& _grad, void* f_data);
30
32
  };
33
+
34
+ } //namespace
@@ -98,6 +98,7 @@ struct GaussEDA : EvolutionStrategy {
98
98
  arr elite;
99
99
  RAI_PARAM("GaussEDA/", double, sigmaInit, .1)
100
100
  RAI_PARAM("GaussEDA/", double, sigma2Min, .001)
101
+ RAI_PARAM("GaussEDA/", double, momentum, 1.)
101
102
  RAI_PARAM("GaussEDA/", double, beta, .1)
102
103
  RAI_PARAM("ES/", double, sigmaDecay, .001)
103
104
  RAI_PARAM("ES/", uint, lambda, 20)
robotic/librai.so CHANGED
Binary file
robotic/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.3.4.dev3'
1
+ __version__ = '0.3.4.dev4'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotic
3
- Version: 0.3.4.dev3
3
+ Version: 0.3.4.dev4
4
4
  Summary: Robotic Control Interface & Manipulation Planning Library
5
5
  Home-page: https://github.com/MarcToussaint/robotic/
6
6
  Author: Marc Toussaint
@@ -1,13 +1,12 @@
1
1
  robotic/DataGen.pyi,sha256=qDQjATpbIgFvOrWk7F3ZTVbOuyXjT5nwHxrsRfGxWRU,3716
2
2
  robotic/__init__.py,sha256=h8LG-Fle7lAtkJ-ZE1u5kWTyuayhugNxtFX9T_JKQGY,476
3
- robotic/_robotic.pyi,sha256=elGV7HLgxv2rpjwtTNc4-XFZYqV_Ka5iYgDdsCWyfe4,78736
4
- robotic/_robotic.so,sha256=lmROr3RTiI6mTP4nGHZkPbYpekvpVFGHRniiARNoJzk,1296224
3
+ robotic/_robotic.pyi,sha256=XK-lJzDjXVuZ0vuCDREkfpMFOrtXj_u8Uj_mBuB4rxE,78841
4
+ robotic/_robotic.so,sha256=SpV31oOqFJxO2A7FjE98vAGK7afr6PlSI45g5R6EM9c,1296224
5
5
  robotic/algo.pyi,sha256=hAN3ZPvf4VnhcdoRP-EecAwUge_JMxovJ9lAOIgWX2Q,730
6
- robotic/librai.so,sha256=6RzS5XjU-WUp40taQUTYmArrBL7B2pD4WmhkFSJB_ks,39030496
6
+ robotic/librai.so,sha256=pZST3L6Y8KEXVOB83bppWVOzpl9FA8eiWDM7-YSY9KA,39026368
7
7
  robotic/manipulation.py,sha256=0B7UzU9J7b4f19thz67TbvknoncxffQEMHSBB6ez1Jg,22279
8
8
  robotic/meshTool,sha256=W_0nI2SG9N-qnmSiHRb6MBkEbpWOUXgtaY8q-qd1fcg,56288
9
9
  robotic/mujoco-import.py,sha256=8eC8ldlFwnYQfqII3FVdWEQ7zd1PkSdAF-oyryIQtkY,231
10
- robotic/nlp.py,sha256=n9_hOj3i707DdL_r49Yd2eWyjsSOahW8DmJrEhQlNFw,3200
11
10
  robotic/render.py,sha256=OE1dvyWHD7Oyzk4wlhXZ7m3v3xxa3zAL5_LCV1RgJXk,4662
12
11
  robotic/ry-bot,sha256=nd2yWqaDsFbwAmr7ySdOjq06ek0E1FMHTxPRO-7e2Q8,2294
13
12
  robotic/ry-h5info,sha256=zfGJiyYJIVw1QWWQErJIvaKA1oVJuKwllafWRSoZFFk,463
@@ -17,7 +16,7 @@ robotic/ry-test,sha256=MYMwRyOwCDxsgUwSPj9etNRSKJWvc6jwVWUJNkxlw-U,979
17
16
  robotic/ry-urdfConvert.py,sha256=8Efnq3PU202rrZrVEZiGwzFOJdvrLjTJ2q-gnY6-tiU,2556
18
17
  robotic/ry-view,sha256=T1Omn1QS7cNAtjQhBjMJTNz7aW5FgoOf9vBIfW0mFME,613
19
18
  robotic/test.pyi,sha256=vVxwRSerjUG4bpB7pIhof7ZatrBqwg3Bj5voywa-YTI,917
20
- robotic/version.py,sha256=xfsM48038Ic2hSirS2ELKQKlZiXeyw-AF4CeC_ZmfBE,27
19
+ robotic/version.py,sha256=bLx8Ulolu0qyL2Wr9lJU1sAymBIfByepCUvO26mMVp4,27
21
20
  robotic/include/rai/Algo/MLcourse.h,sha256=TGkAJWC5ollGfPw0-gcYL0TZeDJiHtWFzkHSMK8_lqU,1828
22
21
  robotic/include/rai/Algo/RidgeRegression.h,sha256=VXiv6-xr3j--CN7DJTzUg9Xb49zV9FZ9dwzxP1CmcPM,3730
23
22
  robotic/include/rai/Algo/SplineCtrlFeed.h,sha256=yILBoUh9Ce0YtzGVZeAKmdUqsf0xeCGjXGC8bXNzZ3o,3339
@@ -112,7 +111,7 @@ robotic/include/rai/Kin/F_geometrics.h,sha256=2yPFycgcmZjXLezxoRL_aaetrZusDgtGyx
112
111
  robotic/include/rai/Kin/F_operators.h,sha256=Nxdk1dPSoN7lW0A5Ns-BSJ_YXFft4iZi9RDOmVn3BJ0,1608
113
112
  robotic/include/rai/Kin/F_pose.h,sha256=QlZnpS4ZTNFBZlH-lpe6sTt2gdbxbjsZTHPqk0T_4AI,5252
114
113
  robotic/include/rai/Kin/F_qFeatures.h,sha256=x4cfFGaVBQSmj9ZetcC25qiGxnvfNMPsWh9zbPa5owE,2212
115
- robotic/include/rai/Kin/cameraview.h,sha256=39RakWi-cKHqfeUxYQ25uQ2MrNMM4SeKtxRtoLKa8zw,2968
114
+ robotic/include/rai/Kin/cameraview.h,sha256=mcHUKhQqrl5lZYh8JQ_3S-3HaiAGuHruWiNViymx10g,2414
116
115
  robotic/include/rai/Kin/dof_direction.h,sha256=9tio7VXxXAv-ZAxA6QskjD5rMH2LHU4hIGAG6TC0RaY,831
117
116
  robotic/include/rai/Kin/dof_forceExchange.h,sha256=LcqbyfFYI2CyNoiJlY1WxkXRgsMfSmrV3PuynG9kdCA,1952
118
117
  robotic/include/rai/Kin/dof_particles.h,sha256=PboLndC5a5extUKAfUPAIsJEGTTs6_ACDgnLrei2s8g,790
@@ -151,9 +150,9 @@ robotic/include/rai/Optim/NLP_Solver.h,sha256=_9uwj61sobPl5-Q8bpxz4Wb6i5Q6nctfFs
151
150
  robotic/include/rai/Optim/constrained.h,sha256=VdtrNywvRiDvfb3_KICQnnkE54EuadV0y2a1kuXM6eA,1522
152
151
  robotic/include/rai/Optim/i_Ceres.h,sha256=kQbuKAfvOFIPcGWh2laGHyRsSf0A8mggVUGonq3JaHU,946
153
152
  robotic/include/rai/Optim/i_Ipopt.h,sha256=1v147tZVY3MuNMRLaFFWxKC7fyNP5-59WJzKoVv8BsY,516
154
- robotic/include/rai/Optim/i_NLopt.h,sha256=R0ma9SjxcVU9nI7H39QOWUIPy95H4AiQwLRHz3DRe7k,970
153
+ robotic/include/rai/Optim/i_NLopt.h,sha256=GWtOe8PJ2GtB2bnCZcPXzxFI127b8FXjv_msWLzVZaE,1002
155
154
  robotic/include/rai/Optim/lagrangian.h,sha256=KaORGcnP3je7AiF_kzNe9nYGlCfwVt-exTMiehmJugo,2532
156
- robotic/include/rai/Optim/m_EvoStrategies.h,sha256=Tvd3DDcd8QCwv5-i0s0WPVF_c25VWx7xcGDex_SQ0wg,3292
155
+ robotic/include/rai/Optim/m_EvoStrategies.h,sha256=CgNQbWpsP0OW6g9Q5TO6WttC1X76mWLh8muPfJiBrwQ,3339
157
156
  robotic/include/rai/Optim/m_Gradient.h,sha256=u5e6fsPd54qRvQwvbHeFjj-qLij_SlP6BlR0eEKVeFA,1743
158
157
  robotic/include/rai/Optim/m_LBFGS.h,sha256=EkKO7ws6M0cRB2zGsbxtU1meyfAvJw-BlCrY1bijZaM,311
159
158
  robotic/include/rai/Optim/m_LeastSquaresZeroOrder.h,sha256=_64u-BQMU6D939ilkglnCj4CgOIBswZhSd0yRYgJ7XE,1597
@@ -373,15 +372,15 @@ robotic/src/meshlabFilters.mlx,sha256=SCIiIk7XZusvKEKY62pHSem_R3TcMUP8BFaLTVUcnE
373
372
  robotic/src/mujoco_io.py,sha256=drLNE4yo30hpOY01-AsuCWKLvNoG5w2YDSzR_rlyfz0,9474
374
373
  robotic/src/urdf_io.py,sha256=bbPcJWS9rnYk8CWgEZTmx1XJRBIDrfwgCj-S_RFxl9U,8800
375
374
  robotic/src/yaml_helper.py,sha256=Jf9QaKSNQrPkUPqd5FUDv7_h0wDlGXrhCdMwu6y-Nh0,925
376
- robotic-0.3.4.dev3.data/scripts/ry-bot,sha256=LBNbbQeNNNd_tupI5463Xe-RKSD6xy4HGTbJloisCGk,2280
377
- robotic-0.3.4.dev3.data/scripts/ry-h5info,sha256=6orNP37WPoobKup0PcLXQvbiCVWqeRR_JQyMH1iXHJk,449
378
- robotic-0.3.4.dev3.data/scripts/ry-info,sha256=fL5QXJL4Xx-Q42L2C29HHbj1XsmWdWiKIv9rVfc5sm4,425
379
- robotic-0.3.4.dev3.data/scripts/ry-meshTool,sha256=h4f4wFPNaey3ziz870SrEvy6SsQSL-ZnR_cH3UuAZxE,101
380
- robotic-0.3.4.dev3.data/scripts/ry-test,sha256=YTCSIuTA4JYk7j7TAr-t7IIp5g6hdLRlTPxJZBxQVpk,965
381
- robotic-0.3.4.dev3.data/scripts/ry-urdfConvert.py,sha256=762MIDmAhdCCj55QftY7wsy9gOEs-TDEWcRPt5dECyc,2542
382
- robotic-0.3.4.dev3.data/scripts/ry-view,sha256=_GjUbVS2X3AWnlXqIHwU5dofLmUKA2-NUPySgS-QJNI,599
383
- robotic-0.3.4.dev3.dist-info/licenses/LICENSE,sha256=oT-pAsUSXiuMq2_3omR87-GFBeBnegQYixH4Bm_7wag,1071
384
- robotic-0.3.4.dev3.dist-info/METADATA,sha256=aoF27hrmCkKvJ2dhwB-KHYqHjgX8AYCXK9dkw0Q6RLo,6663
385
- robotic-0.3.4.dev3.dist-info/WHEEL,sha256=6TsICjgOR7isz_jYr-ssV7RSRmh1_0Z7_b5ESlzfzVY,104
386
- robotic-0.3.4.dev3.dist-info/top_level.txt,sha256=x5A4haAZ18y9FpO1IhXSVJ2TFdhVAgT5JMkejHUg_9U,8
387
- robotic-0.3.4.dev3.dist-info/RECORD,,
375
+ robotic-0.3.4.dev4.data/scripts/ry-bot,sha256=LBNbbQeNNNd_tupI5463Xe-RKSD6xy4HGTbJloisCGk,2280
376
+ robotic-0.3.4.dev4.data/scripts/ry-h5info,sha256=6orNP37WPoobKup0PcLXQvbiCVWqeRR_JQyMH1iXHJk,449
377
+ robotic-0.3.4.dev4.data/scripts/ry-info,sha256=fL5QXJL4Xx-Q42L2C29HHbj1XsmWdWiKIv9rVfc5sm4,425
378
+ robotic-0.3.4.dev4.data/scripts/ry-meshTool,sha256=h4f4wFPNaey3ziz870SrEvy6SsQSL-ZnR_cH3UuAZxE,101
379
+ robotic-0.3.4.dev4.data/scripts/ry-test,sha256=YTCSIuTA4JYk7j7TAr-t7IIp5g6hdLRlTPxJZBxQVpk,965
380
+ robotic-0.3.4.dev4.data/scripts/ry-urdfConvert.py,sha256=762MIDmAhdCCj55QftY7wsy9gOEs-TDEWcRPt5dECyc,2542
381
+ robotic-0.3.4.dev4.data/scripts/ry-view,sha256=_GjUbVS2X3AWnlXqIHwU5dofLmUKA2-NUPySgS-QJNI,599
382
+ robotic-0.3.4.dev4.dist-info/licenses/LICENSE,sha256=oT-pAsUSXiuMq2_3omR87-GFBeBnegQYixH4Bm_7wag,1071
383
+ robotic-0.3.4.dev4.dist-info/METADATA,sha256=L-Uk3M5xv1M4z4TknL8bsprAQ7rc5q4ItxEzXp1AIBw,6663
384
+ robotic-0.3.4.dev4.dist-info/WHEEL,sha256=6TsICjgOR7isz_jYr-ssV7RSRmh1_0Z7_b5ESlzfzVY,104
385
+ robotic-0.3.4.dev4.dist-info/top_level.txt,sha256=x5A4haAZ18y9FpO1IhXSVJ2TFdhVAgT5JMkejHUg_9U,8
386
+ robotic-0.3.4.dev4.dist-info/RECORD,,
robotic/nlp.py DELETED
@@ -1,113 +0,0 @@
1
- import numpy as np
2
-
3
- class OT():
4
- f = 0
5
- sos = 1
6
- ineq = 2
7
- eq = 3
8
-
9
- class NLP():
10
- """
11
- Non-Linear Mathematical Program
12
-
13
- min_x 1^T phi_f(x) + phi_sos(x)^T phi_sos(x)
14
- s.t. phi_eq(x) = 0
15
- phi_ineq(x) <= 0
16
- B[0] <= x <= B[1]
17
-
18
- where:
19
- x is a continous variable, in vector space R^n
20
- phi_f is a vector of cost terms
21
- phi_sos is a vector of least cost terms
22
- phi_eq is a vector of equality constraints
23
- phi_ineq is a vector of inequality constraints
24
- B[0] and B[1] in R^n are, respectively, the lower and upper box bounds
25
- """
26
-
27
- def __init__(self, *args, **kwargs):
28
- pass
29
-
30
- def evaluate(self, x):
31
- """
32
- query the NLP at a point x; returns the tuple (phi,J), which is
33
- the feature vector and its Jacobian; features define cost terms,
34
- sum-of-square (sos) terms, inequalities, and equalities depending
35
- on 'getFeatureTypes'.
36
-
37
- If the returned Jacobian has 3 columns and #rows non-equal to
38
- dim(phi) it should be interpreted by solvers as sparse in
39
- triplet format; the C++ solvers exploit such sparse Jacobians,
40
- e.g., to efficiently compute Gauss-Newton steps.
41
-
42
- Parameters
43
- ------
44
- x: np.array, 1-D
45
-
46
- Returns
47
- ------
48
- phi: np.array 1-D
49
- J: np.array 2-D. J[i,j] is derivative of feature i w.r.t variable j, potentially sparse
50
- """
51
- raise NotImplementedError()
52
-
53
- def getDimension(self):
54
- """
55
- Returns
56
- -----
57
- output: dimensionality of x
58
- """
59
- raise NotImplementedError()
60
-
61
- def getFeatureTypes(self):
62
- """
63
- Returns
64
- -----
65
- output: list of feature Types
66
- """
67
- return NotImplementedError()
68
-
69
- def getBounds(self):
70
- """
71
- returns 2-times-n array, where n is the dimensionality of x
72
- B[0] is the lower and B[1] the upper bounds, so that B[0] <= x <= B[1]
73
-
74
- Returns
75
- ------
76
- B: np.array 2D (2-times-n)
77
- """
78
- n = self.getDimension()
79
- return np.tile([[-1.], [+1.]], (1,n))
80
-
81
- def getFHessian(self, x):
82
- """
83
- Optionally returns a Hessian of the sum of all phi_f objectives
84
- The Hessian is by default approximated Gauss-Newton w.r.t. the phi_sos objectives; this
85
- method allows to return an explicit Hessian also for phi_f objectives that is added to the
86
- Gauss-Newton of phi_sos objectives. Needs to be sparse if $J$ is sparse. Default: empty array (zero).
87
-
88
- Returns
89
- -----
90
- Hessian: np.array 2D, potentially sparse
91
- """
92
- return []
93
-
94
- def getInitializationSample(self):
95
- """
96
- returns a sample to initialize an optimization, not necessarily feasible. Default: uniform within bounds
97
-
98
- Returns
99
- -----
100
- x: np.array 1-D
101
- """
102
- bounds = self.getBounds()
103
- return np.random.uniform(low=bounds[0,:], high=bounds[1,:])
104
-
105
- def report(self, verbose):
106
- """
107
- displays semantic information on the last query. Default: empty string
108
-
109
- Returns
110
- ----
111
- output: string
112
- """
113
- return ''