robotic 0.3.1.dev3__cp310-cp310-manylinux2014_x86_64.whl → 0.3.3__cp310-cp310-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
@@ -72,10 +72,18 @@ class BSpline:
72
72
  """
73
73
  non-initialized
74
74
  """
75
+ def append(self, points: arr, times_rel: arr, inside: bool = False) -> None:
76
+ """
77
+ appends points to the current spline; times_rel become relative to the current last knot; inside = remove the current end double knot (zero vel), smoothly blending but not transitioning anymore through the current end point
78
+ """
75
79
  def eval(self, sampleTimes: arr, derivative: int = 0) -> arr:
76
80
  """
77
81
  evaluate the spline (or its derivative) for given sampleTimes
78
82
  """
83
+ def eval3(self, time: float) -> arr:
84
+ """
85
+ evaluate the spline pos, vel, acc (3xn matrix) at a single time
86
+ """
79
87
  def getBmatrix(self, sampleTimes: arr, startDuplicates: bool = False, endDuplicates: bool = False) -> arr:
80
88
  """
81
89
  return the B-matrix mapping from ctrlPoints to (e.g. finer) sampleTimes (e.g. uniform linspace(0,1,T)
@@ -84,6 +92,14 @@ class BSpline:
84
92
  ...
85
93
  def getKnots(self) -> arr:
86
94
  ...
95
+ def overwriteSmooth(self, points: arr, times_rel: arr, time_cut: float) -> None:
96
+ """
97
+ overwrites the spline by adopting the pos+vel at time_cut of the current spline and appending given points; NOTE: times_rel are added to time_cut)
98
+ """
99
+ def set(self, degree: int, points: arr, times: arr, setStartVel: arr = ..., setEndVel: arr = ...) -> BSpline:
100
+ """
101
+ convenience: same as setKnots(degree, times) and setCtrlPoints(points, true, true, startVel, endVel)
102
+ """
87
103
  def setCtrlPoints(self, points: arr, addStartDuplicates: bool = True, addEndDuplicates: bool = True, setStartVel: arr = ..., setEndVel: arr = ...) -> None:
88
104
  """
89
105
  set the ctrl points, automatically duplicating them as needed at start/end, optionally setting vels at start/end
robotic/_robotic.so CHANGED
Binary file
@@ -40,7 +40,7 @@ struct BSplineCtrlReference : ReferenceFeed {
40
40
  //info:
41
41
  double getEndTime() { return spline.get()->end(); }
42
42
  arr getEndPoint() { return spline.get()->ctrlPoints[-1].copy(); }
43
- void eval(arr& x, arr& xDot, arr& xDDot, double t) { spline.get()->eval2(x, xDot, xDDot, t); }
43
+ void eval(arr& x, arr& xDot, arr& xDDot, double t) { spline.get()->eval3(x, xDot, xDDot, t); }
44
44
 
45
45
  void report(double ctrlTime);
46
46
  };
@@ -29,27 +29,23 @@ struct BSpline {
29
29
  arr getBmatrix(const arr& sampleTimes, bool startDuplicates=false, bool endDuplicates=false);
30
30
 
31
31
  //-- methods concerning ctrl points
32
- void setCtrlPoints(const arr& pts, bool addStartDuplicates=true, bool addEndDuplicates=true, const arr& setStartVel=NoArr, const arr& setEndVel=NoArr);
33
- void append(const arr& points, const arr& times, bool inside);
32
+ void setCtrlPoints(const arr& points, bool addStartDuplicates=true, bool addEndDuplicates=true, const arr& setStartVel=NoArr, const arr& setEndVel=NoArr);
34
33
 
35
34
  //-- convenience user functions
36
35
  BSpline& set(uint _degree, const arr& points, const arr& times, const arr& startVel=NoArr, const arr& endVel=NoArr);
36
+ void overwriteSmooth(const arr& points, const arr& times_rel, double time_cut);
37
+ void append(const arr& points, const arr& times_rel, bool inside);
37
38
  void clear();
38
39
  arr& getKnots(){ return knots; }
39
40
  arr& getCtrlPoints(){ return ctrlPoints; }
40
41
  arr getPoints();
41
42
 
42
- //-- obsolete
43
- // BSpline& set_vel(uint degree, const arr& points, const arr& velocities, const arr& _times);
44
-
45
-
46
43
  //experimental
47
44
  void doubleKnot(uint t);
48
45
  void setDoubleKnotVel(int t, const arr& vel);
49
46
 
50
47
  /// core method to evaluate spline
51
- // void eval(arr& x, arr& xDot, arr& xDDot, double t) const;
52
- void eval2(arr& x, arr& xDot, arr& xDDot, double t, arr& Jpoints=NoArr, arr& Jtimes=NoArr) const;
48
+ void eval3(arr& x, arr& xDot, arr& xDDot, double t, arr& Jpoints=NoArr, arr& Jtimes=NoArr) const;
53
49
  arr eval(double t, uint derivative=0) const;
54
50
  arr eval(const arr& sampleTimes, uint derivative=0) const;
55
51
 
@@ -19,13 +19,6 @@ namespace rai{
19
19
  StringA get_NLP_Problem_names();
20
20
  }
21
21
 
22
- struct KOMO_wrap : std::shared_ptr<NLP> {
23
- std::shared_ptr<KOMO> komo;
24
- KOMO_wrap(const std::shared_ptr<KOMO>& _komo) : komo(_komo){
25
- std::shared_ptr<NLP>::operator=( komo->nlp() );
26
- }
27
- };
28
-
29
22
  shared_ptr<KOMO> problem_IK();
30
23
  shared_ptr<KOMO> problem_IKobstacle();
31
24
  shared_ptr<KOMO> problem_IKtorus();
@@ -74,6 +74,8 @@ struct NLP : rai::NonCopyable {
74
74
  return d;
75
75
  }
76
76
  arr summarizeErrors(const arr& phi);
77
+
78
+ shared_ptr<rai::NonCopyable> obj;
77
79
  };
78
80
 
79
81
  //===========================================================================
robotic/librai.so CHANGED
Binary file
robotic/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.3.1.dev3'
1
+ __version__ = '0.3.3'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotic
3
- Version: 0.3.1.dev3
3
+ Version: 0.3.3
4
4
  Summary: Robotic Control Interface & Manipulation Planning Library
5
5
  Home-page: https://github.com/MarcToussaint/robotic/
6
6
  Author: Marc Toussaint
@@ -1,8 +1,8 @@
1
1
  robotic/DataGen.pyi,sha256=qDQjATpbIgFvOrWk7F3ZTVbOuyXjT5nwHxrsRfGxWRU,3716
2
2
  robotic/__init__.py,sha256=H8Qi-wA95h6SuziEFNZFEt6Tpt5UrttS9ftBjZCsMm4,421
3
- robotic/_robotic.pyi,sha256=r9jK_izrLOBM9mzXfjlD7KX9T3_1bZ7X9XmOc6OTF40,76013
4
- robotic/_robotic.so,sha256=_aa3r6moZ7JFTS8w-iGwDQYsjZUiwL7kRvUozMmVJps,1242920
5
- robotic/librai.so,sha256=34ir07GEF4Sm9yx8hCqWD7CGbgq_7NReaREfEldeKjQ,38758816
3
+ robotic/_robotic.pyi,sha256=gr5_H1AoXHl6fbJqoseQRs5Iiue59qa3HBKVUSW6X08,76998
4
+ robotic/_robotic.so,sha256=NDted3m14wLbNX3pnbpvtp1iFV2lxnoC_FtNCV_eYLg,1259304
5
+ robotic/librai.so,sha256=P6KofckI-aJOP7A2eVFbF390PGWfOxYx69UiMYG0Jno,38754752
6
6
  robotic/manipulation.py,sha256=0B7UzU9J7b4f19thz67TbvknoncxffQEMHSBB6ez1Jg,22279
7
7
  robotic/meshTool,sha256=kYLO2HPXn8nj98Qx-MIvJYpkFzOk2zY9-d30DgFZT80,52176
8
8
  robotic/mujoco-import.py,sha256=8eC8ldlFwnYQfqII3FVdWEQ7zd1PkSdAF-oyryIQtkY,231
@@ -17,10 +17,10 @@ robotic/ry-urdfConvert.py,sha256=8Efnq3PU202rrZrVEZiGwzFOJdvrLjTJ2q-gnY6-tiU,255
17
17
  robotic/ry-view,sha256=T1Omn1QS7cNAtjQhBjMJTNz7aW5FgoOf9vBIfW0mFME,613
18
18
  robotic/test.py,sha256=8hiDRB2kB37hE5cZ7h26AJDnSGYb1y8DwOrcEGD_5Hc,620
19
19
  robotic/test.pyi,sha256=vVxwRSerjUG4bpB7pIhof7ZatrBqwg3Bj5voywa-YTI,917
20
- robotic/version.py,sha256=8A91eHxAjFgTiNMg1NxW5Q6-QleQmDkpOEKoXwnRqq0,27
20
+ robotic/version.py,sha256=on4Bj4mGEjEjyUkQExxprhOoEopcv_sPapsEnNxyelE,22
21
21
  robotic/include/rai/Algo/MLcourse.h,sha256=TGkAJWC5ollGfPw0-gcYL0TZeDJiHtWFzkHSMK8_lqU,1828
22
22
  robotic/include/rai/Algo/RidgeRegression.h,sha256=VXiv6-xr3j--CN7DJTzUg9Xb49zV9FZ9dwzxP1CmcPM,3730
23
- robotic/include/rai/Algo/SplineCtrlFeed.h,sha256=9ZtYLHXx9sExj0lZV6F5ZWaCtkm0R4hMiYb-KJjktnc,3339
23
+ robotic/include/rai/Algo/SplineCtrlFeed.h,sha256=yILBoUh9Ce0YtzGVZeAKmdUqsf0xeCGjXGC8bXNzZ3o,3339
24
24
  robotic/include/rai/Algo/ann.h,sha256=XCQSzJIg_cPzZBKgIJMuHvBLc3ayD1FzSFqh2s_1TnM,1294
25
25
  robotic/include/rai/Algo/dataNeighbored.h,sha256=NfwS4xJElLxX8t5cYY3xiTLXgJyMsHoaD-J0kT2GXqE,1208
26
26
  robotic/include/rai/Algo/eigenValues.h,sha256=U76I5DT_WO_o7k-W3qYt2exc0WCpw4yYjR8WCqxGBv4,942
@@ -31,7 +31,7 @@ robotic/include/rai/Algo/kalman.h,sha256=c3i6ebYHZtyT5ReTmpJVx8aJ26JWLymqK_QRDY4
31
31
  robotic/include/rai/Algo/minimalSpanningTree.h,sha256=56zTSWdMi4TMjtQDVv7tHo4ahivfidTXWN4zp9NX-Jw,512
32
32
  robotic/include/rai/Algo/priorityQueue.h,sha256=nF-5_eSbGjXMmY2K3SpD-Hxwb3bhFA1ilr6IBsFq87Q,1938
33
33
  robotic/include/rai/Algo/rungeKutta.h,sha256=Kbqeu-MauQDQnmKXSRk3VnOLUY_ngKzy-rqSskBqR9k,1761
34
- robotic/include/rai/Algo/spline.h,sha256=sc36vGI2Ypm1bAo1bgu1mB8D2I4pHlmvHKonmrQi4v4,4358
34
+ robotic/include/rai/Algo/spline.h,sha256=mNi6ktREVFYkdJWPZaCrnvCW3AuZyMAsktYkRz3Ywxo,4269
35
35
  robotic/include/rai/Control/CtrlMsgs.h,sha256=61lxkvpcVB2ZAL7qmB35CJ1KkhZUB27lUJ4ZMiFH0Co,2406
36
36
  robotic/include/rai/Control/CtrlObjective.h,sha256=fC-6cS0X0RR_7ooFm1xnAXlN2mgyF26qKfTjomUK45U,2591
37
37
  robotic/include/rai/Control/CtrlSet.h,sha256=o7u8N9ZSoMbiDR3TGKDjfIarIP1JAw0SHMFL18t1fv0,1404
@@ -102,7 +102,7 @@ robotic/include/rai/KOMO/skeleton.h,sha256=NPaMfUMC_sUd3AjlLHTFpxWH4QtnKP_zzvHb2
102
102
  robotic/include/rai/KOMO/skeletonSymbol.h,sha256=mrPqRn_1i4PuqbkQBhKEYc5WPEGqPjBN6TvwZxZ5e7A,1261
103
103
  robotic/include/rai/KOMO/splined.h,sha256=G_fu9gXCboJLkwhwu77F6F3Ei6deqzbvkgP8r9kiNL8,903
104
104
  robotic/include/rai/KOMO/switch.h,sha256=teNNnHFe4h9W5rLlL3TFBsq97ni-RUEhcxw4uVPYR1g,1850
105
- robotic/include/rai/KOMO/testProblems_KOMO.h,sha256=K68JhZOpPcB9A0K2IEnfOJHG3-QweSDmHB2u_YfjeIA,3000
105
+ robotic/include/rai/KOMO/testProblems_KOMO.h,sha256=OH1zWcD-hIXsml2RkLIvl5eyi69WuLKqWPdqWjWWFI0,2805
106
106
  robotic/include/rai/Kin/F_LeapCost.h,sha256=wNAUNgAJjLirMurF67BlFLHtjyuXy1EPr--9XLBe6Wk,556
107
107
  robotic/include/rai/Kin/F_collisions.h,sha256=Atq9LPVOkEuMF-kSHk78cGjaJYwDIbvrTxHmLBJw3yk,2092
108
108
  robotic/include/rai/Kin/F_forces.h,sha256=tHyBQcKhi4ZdsHoBU5bu7kLWVm611SfEYG_o-vMSDN0,6694
@@ -138,7 +138,7 @@ robotic/include/rai/Logic/folWorld.h,sha256=XpqTWOIvZbKlS_vsJkXOexrhjfy3_iywebFe
138
138
  robotic/include/rai/Logic/treeSearchDomain.h,sha256=sO5Y6o9wRTQxfST9YyJw3P0KcqGX7ISqbIN-uGQ5abU,3882
139
139
  robotic/include/rai/Optim/BayesOpt.h,sha256=GqOqGk5Y0USf513duMPtt--TBYGqujdsvY2qi17jVxI,1241
140
140
  robotic/include/rai/Optim/GlobalIterativeNewton.h,sha256=WRaTFUrx0A1FO7d7shgZbJVaC5AWKZT5PTD8LnuPXiE,801
141
- robotic/include/rai/Optim/NLP.h,sha256=UwlTvUopRLYldVtx_WiFYDegPCssd4slWMQQD2EqI9s,8200
141
+ robotic/include/rai/Optim/NLP.h,sha256=glYe1vIhsQHmEH6_oh1Bo-JcYXGXmm84esf2FCRLmMs,8237
142
142
  robotic/include/rai/Optim/NLP_Factory.h,sha256=xDn73B-u6fFvtu-udkXgyTiFyjTzfJNHwUm6z88FiOo,1979
143
143
  robotic/include/rai/Optim/NLP_GraphSolver.h,sha256=Te5_uyLrBvHANfGv9uHdR6YPuCWCqgJqj9EL8WYfF14,1172
144
144
  robotic/include/rai/Optim/NLP_Sampler.h,sha256=JaOEc8YJwatW5toOviTFXlOoF3Dg8ZWPM9zejyW9ND8,4643
@@ -357,15 +357,15 @@ robotic/src/meshlabFilters.mlx,sha256=SCIiIk7XZusvKEKY62pHSem_R3TcMUP8BFaLTVUcnE
357
357
  robotic/src/mujoco_io.py,sha256=drLNE4yo30hpOY01-AsuCWKLvNoG5w2YDSzR_rlyfz0,9474
358
358
  robotic/src/urdf_io.py,sha256=bbPcJWS9rnYk8CWgEZTmx1XJRBIDrfwgCj-S_RFxl9U,8800
359
359
  robotic/src/yaml_helper.py,sha256=Jf9QaKSNQrPkUPqd5FUDv7_h0wDlGXrhCdMwu6y-Nh0,925
360
- robotic-0.3.1.dev3.data/scripts/ry-bot,sha256=LBNbbQeNNNd_tupI5463Xe-RKSD6xy4HGTbJloisCGk,2280
361
- robotic-0.3.1.dev3.data/scripts/ry-h5info,sha256=eh9McT5Ury7bbTudxkSOLWo-tZ6heiSEpGStM07N-Dc,810
362
- robotic-0.3.1.dev3.data/scripts/ry-info,sha256=fL5QXJL4Xx-Q42L2C29HHbj1XsmWdWiKIv9rVfc5sm4,425
363
- robotic-0.3.1.dev3.data/scripts/ry-meshTool,sha256=h4f4wFPNaey3ziz870SrEvy6SsQSL-ZnR_cH3UuAZxE,101
364
- robotic-0.3.1.dev3.data/scripts/ry-test,sha256=vcaPrFq9Co9N2F2Mdl2_1CTieOBssSoEhU67wXqJ2EY,981
365
- robotic-0.3.1.dev3.data/scripts/ry-urdfConvert.py,sha256=762MIDmAhdCCj55QftY7wsy9gOEs-TDEWcRPt5dECyc,2542
366
- robotic-0.3.1.dev3.data/scripts/ry-view,sha256=_GjUbVS2X3AWnlXqIHwU5dofLmUKA2-NUPySgS-QJNI,599
367
- robotic-0.3.1.dev3.dist-info/licenses/LICENSE,sha256=oT-pAsUSXiuMq2_3omR87-GFBeBnegQYixH4Bm_7wag,1071
368
- robotic-0.3.1.dev3.dist-info/METADATA,sha256=gou7C8EenDS3YOxRuIfKpRM2eT88VJybxYMgQJlVGvo,6659
369
- robotic-0.3.1.dev3.dist-info/WHEEL,sha256=0-G7woG4LgutcYzUGJCOYFgoh749-FtfhSMeIPLVGS0,104
370
- robotic-0.3.1.dev3.dist-info/top_level.txt,sha256=x5A4haAZ18y9FpO1IhXSVJ2TFdhVAgT5JMkejHUg_9U,8
371
- robotic-0.3.1.dev3.dist-info/RECORD,,
360
+ robotic-0.3.3.data/scripts/ry-bot,sha256=LBNbbQeNNNd_tupI5463Xe-RKSD6xy4HGTbJloisCGk,2280
361
+ robotic-0.3.3.data/scripts/ry-h5info,sha256=eh9McT5Ury7bbTudxkSOLWo-tZ6heiSEpGStM07N-Dc,810
362
+ robotic-0.3.3.data/scripts/ry-info,sha256=fL5QXJL4Xx-Q42L2C29HHbj1XsmWdWiKIv9rVfc5sm4,425
363
+ robotic-0.3.3.data/scripts/ry-meshTool,sha256=h4f4wFPNaey3ziz870SrEvy6SsQSL-ZnR_cH3UuAZxE,101
364
+ robotic-0.3.3.data/scripts/ry-test,sha256=vcaPrFq9Co9N2F2Mdl2_1CTieOBssSoEhU67wXqJ2EY,981
365
+ robotic-0.3.3.data/scripts/ry-urdfConvert.py,sha256=762MIDmAhdCCj55QftY7wsy9gOEs-TDEWcRPt5dECyc,2542
366
+ robotic-0.3.3.data/scripts/ry-view,sha256=_GjUbVS2X3AWnlXqIHwU5dofLmUKA2-NUPySgS-QJNI,599
367
+ robotic-0.3.3.dist-info/licenses/LICENSE,sha256=oT-pAsUSXiuMq2_3omR87-GFBeBnegQYixH4Bm_7wag,1071
368
+ robotic-0.3.3.dist-info/METADATA,sha256=h80ROYVKP_8ScOU9PIKHLhvyPAEJPzbTBXHtdAJaAyI,6654
369
+ robotic-0.3.3.dist-info/WHEEL,sha256=0-G7woG4LgutcYzUGJCOYFgoh749-FtfhSMeIPLVGS0,104
370
+ robotic-0.3.3.dist-info/top_level.txt,sha256=x5A4haAZ18y9FpO1IhXSVJ2TFdhVAgT5JMkejHUg_9U,8
371
+ robotic-0.3.3.dist-info/RECORD,,