roboticstoolbox-python 1.3.0__cp313-cp313-win_amd64.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.
- roboticstoolbox/__init__.py +104 -0
- roboticstoolbox/backends/Connector.py +107 -0
- roboticstoolbox/backends/Dynamixel/README.md +9 -0
- roboticstoolbox/backends/Dynamixel/dynamixel.json +581 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_io.py +450 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/LICENSE +201 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/README.md +28 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/ReleaseNote.md +181 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/__init__.py +27 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/group_bulk_read.py +163 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/group_bulk_write.py +109 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/group_sync_read.py +166 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/group_sync_write.py +99 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/packet_handler.py +33 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/port_handler.py +155 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/protocol1_packet_handler.py +548 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/protocol2_packet_handler.py +1080 -0
- roboticstoolbox/backends/Dynamixel/dynamixel_sdk/robotis_def.py +75 -0
- roboticstoolbox/backends/Dynamixel/dyndata.py +121 -0
- roboticstoolbox/backends/PyPlot/EllipsePlot.py +253 -0
- roboticstoolbox/backends/PyPlot/PyPlot.py +769 -0
- roboticstoolbox/backends/PyPlot/PyPlot2.py +526 -0
- roboticstoolbox/backends/PyPlot/README.md +67 -0
- roboticstoolbox/backends/PyPlot/RobotPlot.py +247 -0
- roboticstoolbox/backends/PyPlot/RobotPlot2.py +123 -0
- roboticstoolbox/backends/PyPlot/__init__.py +4 -0
- roboticstoolbox/backends/ROS/ROS.py +129 -0
- roboticstoolbox/backends/ROS/__init__.py +3 -0
- roboticstoolbox/backends/__init__.py +39 -0
- roboticstoolbox/backends/swift/__init__.py +26 -0
- roboticstoolbox/bin/__init__.py +0 -0
- roboticstoolbox/bin/rtbtool.py +307 -0
- roboticstoolbox/blocks/Icons/250x250/armplot.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/bicycle.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/camera.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/circlepath.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/coriolis.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/ctraj.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/delta2tr.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/diffsteer.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/fdyn.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/fdynx.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/fkine.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/gravload.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/idyn.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/idynx.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/ikine.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/inertia.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/jacobian.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/jtraj.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/lspb.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/multirotor.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/multirotormixer.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/multirotorplot.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/point2tr.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/tr2delta.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/tr2t.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/unicycle.png +0 -0
- roboticstoolbox/blocks/Icons/250x250/vehicleplot.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/armplot.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/bicycle.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/camera.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/circlepath.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/coriolis.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/delta2tr.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/diffsteer.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/fdyn.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/fdynx.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/fkine.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/gravload.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/idyn.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/idynx.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/ikine.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/inertia.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/jacobian.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/jtraj.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/lspb.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/multirotor.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/multirotormixer.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/multirotorplot.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/point2tr.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/tr2delta.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/tr2t.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/unicycle.png +0 -0
- roboticstoolbox/blocks/Icons/50x50/vehicleplot.png +0 -0
- roboticstoolbox/blocks/Icons/armplot.png +0 -0
- roboticstoolbox/blocks/Icons/bicycle.png +0 -0
- roboticstoolbox/blocks/Icons/camera.png +0 -0
- roboticstoolbox/blocks/Icons/circlepath.png +0 -0
- roboticstoolbox/blocks/Icons/coriolis.png +0 -0
- roboticstoolbox/blocks/Icons/ctraj.png +0 -0
- roboticstoolbox/blocks/Icons/delta2tr.png +0 -0
- roboticstoolbox/blocks/Icons/diffsteer.png +0 -0
- roboticstoolbox/blocks/Icons/fdyn.png +0 -0
- roboticstoolbox/blocks/Icons/fdynx.png +0 -0
- roboticstoolbox/blocks/Icons/fkine.png +0 -0
- roboticstoolbox/blocks/Icons/gravload.png +0 -0
- roboticstoolbox/blocks/Icons/idyn.png +0 -0
- roboticstoolbox/blocks/Icons/idynx.png +0 -0
- roboticstoolbox/blocks/Icons/ikine.png +0 -0
- roboticstoolbox/blocks/Icons/inertia.png +0 -0
- roboticstoolbox/blocks/Icons/jacobian.png +0 -0
- roboticstoolbox/blocks/Icons/jtraj.png +0 -0
- roboticstoolbox/blocks/Icons/lspb.png +0 -0
- roboticstoolbox/blocks/Icons/multirotor.png +0 -0
- roboticstoolbox/blocks/Icons/multirotormixer.png +0 -0
- roboticstoolbox/blocks/Icons/multirotorplot.png +0 -0
- roboticstoolbox/blocks/Icons/point2tr.png +0 -0
- roboticstoolbox/blocks/Icons/tr2delta.png +0 -0
- roboticstoolbox/blocks/Icons/tr2t.png +0 -0
- roboticstoolbox/blocks/Icons/unicycle.png +0 -0
- roboticstoolbox/blocks/Icons/vehicleplot.png +0 -0
- roboticstoolbox/blocks/README.md +43 -0
- roboticstoolbox/blocks/__init__.py +6 -0
- roboticstoolbox/blocks/arm.py +1587 -0
- roboticstoolbox/blocks/mobile.py +500 -0
- roboticstoolbox/blocks/quad_model.py +132 -0
- roboticstoolbox/blocks/spatial.py +245 -0
- roboticstoolbox/blocks/uav.py +949 -0
- roboticstoolbox/core/Eigen/Cholesky +45 -0
- roboticstoolbox/core/Eigen/CholmodSupport +48 -0
- roboticstoolbox/core/Eigen/Core +384 -0
- roboticstoolbox/core/Eigen/Dense +7 -0
- roboticstoolbox/core/Eigen/Eigen +2 -0
- roboticstoolbox/core/Eigen/Eigenvalues +60 -0
- roboticstoolbox/core/Eigen/Geometry +59 -0
- roboticstoolbox/core/Eigen/Householder +29 -0
- roboticstoolbox/core/Eigen/IterativeLinearSolvers +48 -0
- roboticstoolbox/core/Eigen/Jacobi +32 -0
- roboticstoolbox/core/Eigen/KLUSupport +41 -0
- roboticstoolbox/core/Eigen/LU +47 -0
- roboticstoolbox/core/Eigen/MetisSupport +35 -0
- roboticstoolbox/core/Eigen/OrderingMethods +70 -0
- roboticstoolbox/core/Eigen/PaStiXSupport +49 -0
- roboticstoolbox/core/Eigen/PardisoSupport +35 -0
- roboticstoolbox/core/Eigen/QR +50 -0
- roboticstoolbox/core/Eigen/QtAlignedMalloc +39 -0
- roboticstoolbox/core/Eigen/SPQRSupport +34 -0
- roboticstoolbox/core/Eigen/SVD +50 -0
- roboticstoolbox/core/Eigen/Sparse +34 -0
- roboticstoolbox/core/Eigen/SparseCholesky +37 -0
- roboticstoolbox/core/Eigen/SparseCore +69 -0
- roboticstoolbox/core/Eigen/SparseLU +50 -0
- roboticstoolbox/core/Eigen/SparseQR +36 -0
- roboticstoolbox/core/Eigen/StdDeque +27 -0
- roboticstoolbox/core/Eigen/StdList +26 -0
- roboticstoolbox/core/Eigen/StdVector +27 -0
- roboticstoolbox/core/Eigen/SuperLUSupport +64 -0
- roboticstoolbox/core/Eigen/UmfPackSupport +40 -0
- roboticstoolbox/core/Eigen/src/Cholesky/LDLT.h +688 -0
- roboticstoolbox/core/Eigen/src/Cholesky/LLT.h +558 -0
- roboticstoolbox/core/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- roboticstoolbox/core/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- roboticstoolbox/core/Eigen/src/Core/ArithmeticSequence.h +413 -0
- roboticstoolbox/core/Eigen/src/Core/Array.h +417 -0
- roboticstoolbox/core/Eigen/src/Core/ArrayBase.h +226 -0
- roboticstoolbox/core/Eigen/src/Core/ArrayWrapper.h +209 -0
- roboticstoolbox/core/Eigen/src/Core/Assign.h +90 -0
- roboticstoolbox/core/Eigen/src/Core/AssignEvaluator.h +1010 -0
- roboticstoolbox/core/Eigen/src/Core/Assign_MKL.h +178 -0
- roboticstoolbox/core/Eigen/src/Core/BandMatrix.h +353 -0
- roboticstoolbox/core/Eigen/src/Core/Block.h +448 -0
- roboticstoolbox/core/Eigen/src/Core/BooleanRedux.h +162 -0
- roboticstoolbox/core/Eigen/src/Core/CommaInitializer.h +164 -0
- roboticstoolbox/core/Eigen/src/Core/ConditionEstimator.h +175 -0
- roboticstoolbox/core/Eigen/src/Core/CoreEvaluators.h +1741 -0
- roboticstoolbox/core/Eigen/src/Core/CoreIterators.h +132 -0
- roboticstoolbox/core/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- roboticstoolbox/core/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- roboticstoolbox/core/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- roboticstoolbox/core/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- roboticstoolbox/core/Eigen/src/Core/CwiseUnaryView.h +132 -0
- roboticstoolbox/core/Eigen/src/Core/DenseBase.h +701 -0
- roboticstoolbox/core/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- roboticstoolbox/core/Eigen/src/Core/DenseStorage.h +652 -0
- roboticstoolbox/core/Eigen/src/Core/Diagonal.h +258 -0
- roboticstoolbox/core/Eigen/src/Core/DiagonalMatrix.h +391 -0
- roboticstoolbox/core/Eigen/src/Core/DiagonalProduct.h +28 -0
- roboticstoolbox/core/Eigen/src/Core/Dot.h +318 -0
- roboticstoolbox/core/Eigen/src/Core/EigenBase.h +160 -0
- roboticstoolbox/core/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- roboticstoolbox/core/Eigen/src/Core/Fuzzy.h +155 -0
- roboticstoolbox/core/Eigen/src/Core/GeneralProduct.h +465 -0
- roboticstoolbox/core/Eigen/src/Core/GenericPacketMath.h +1040 -0
- roboticstoolbox/core/Eigen/src/Core/GlobalFunctions.h +194 -0
- roboticstoolbox/core/Eigen/src/Core/IO.h +258 -0
- roboticstoolbox/core/Eigen/src/Core/IndexedView.h +237 -0
- roboticstoolbox/core/Eigen/src/Core/Inverse.h +117 -0
- roboticstoolbox/core/Eigen/src/Core/Map.h +171 -0
- roboticstoolbox/core/Eigen/src/Core/MapBase.h +310 -0
- roboticstoolbox/core/Eigen/src/Core/MathFunctions.h +2057 -0
- roboticstoolbox/core/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- roboticstoolbox/core/Eigen/src/Core/Matrix.h +565 -0
- roboticstoolbox/core/Eigen/src/Core/MatrixBase.h +547 -0
- roboticstoolbox/core/Eigen/src/Core/NestByValue.h +85 -0
- roboticstoolbox/core/Eigen/src/Core/NoAlias.h +109 -0
- roboticstoolbox/core/Eigen/src/Core/NumTraits.h +335 -0
- roboticstoolbox/core/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- roboticstoolbox/core/Eigen/src/Core/PermutationMatrix.h +605 -0
- roboticstoolbox/core/Eigen/src/Core/PlainObjectBase.h +1128 -0
- roboticstoolbox/core/Eigen/src/Core/Product.h +191 -0
- roboticstoolbox/core/Eigen/src/Core/ProductEvaluators.h +1179 -0
- roboticstoolbox/core/Eigen/src/Core/Random.h +218 -0
- roboticstoolbox/core/Eigen/src/Core/Redux.h +515 -0
- roboticstoolbox/core/Eigen/src/Core/Ref.h +381 -0
- roboticstoolbox/core/Eigen/src/Core/Replicate.h +142 -0
- roboticstoolbox/core/Eigen/src/Core/Reshaped.h +454 -0
- roboticstoolbox/core/Eigen/src/Core/ReturnByValue.h +119 -0
- roboticstoolbox/core/Eigen/src/Core/Reverse.h +217 -0
- roboticstoolbox/core/Eigen/src/Core/Select.h +164 -0
- roboticstoolbox/core/Eigen/src/Core/SelfAdjointView.h +365 -0
- roboticstoolbox/core/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- roboticstoolbox/core/Eigen/src/Core/Solve.h +188 -0
- roboticstoolbox/core/Eigen/src/Core/SolveTriangular.h +235 -0
- roboticstoolbox/core/Eigen/src/Core/SolverBase.h +168 -0
- roboticstoolbox/core/Eigen/src/Core/StableNorm.h +251 -0
- roboticstoolbox/core/Eigen/src/Core/StlIterators.h +463 -0
- roboticstoolbox/core/Eigen/src/Core/Stride.h +116 -0
- roboticstoolbox/core/Eigen/src/Core/Swap.h +68 -0
- roboticstoolbox/core/Eigen/src/Core/Transpose.h +464 -0
- roboticstoolbox/core/Eigen/src/Core/Transpositions.h +386 -0
- roboticstoolbox/core/Eigen/src/Core/TriangularMatrix.h +1001 -0
- roboticstoolbox/core/Eigen/src/Core/VectorBlock.h +96 -0
- roboticstoolbox/core/Eigen/src/Core/VectorwiseOp.h +784 -0
- roboticstoolbox/core/Eigen/src/Core/Visitor.h +381 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- roboticstoolbox/core/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- roboticstoolbox/core/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/Half.h +942 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/Settings.h +49 -0
- roboticstoolbox/core/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- roboticstoolbox/core/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- roboticstoolbox/core/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- roboticstoolbox/core/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- roboticstoolbox/core/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- roboticstoolbox/core/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- roboticstoolbox/core/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- roboticstoolbox/core/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- roboticstoolbox/core/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- roboticstoolbox/core/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- roboticstoolbox/core/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- roboticstoolbox/core/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- roboticstoolbox/core/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- roboticstoolbox/core/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- roboticstoolbox/core/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- roboticstoolbox/core/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- roboticstoolbox/core/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- roboticstoolbox/core/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- roboticstoolbox/core/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- roboticstoolbox/core/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- roboticstoolbox/core/Eigen/src/Core/functors/StlFunctors.h +166 -0
- roboticstoolbox/core/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- roboticstoolbox/core/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- roboticstoolbox/core/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- roboticstoolbox/core/Eigen/src/Core/products/Parallelizer.h +180 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- roboticstoolbox/core/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- roboticstoolbox/core/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- roboticstoolbox/core/Eigen/src/Core/util/BlasUtil.h +583 -0
- roboticstoolbox/core/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- roboticstoolbox/core/Eigen/src/Core/util/Constants.h +563 -0
- roboticstoolbox/core/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- roboticstoolbox/core/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- roboticstoolbox/core/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- roboticstoolbox/core/Eigen/src/Core/util/IntegralConstant.h +272 -0
- roboticstoolbox/core/Eigen/src/Core/util/MKL_support.h +137 -0
- roboticstoolbox/core/Eigen/src/Core/util/Macros.h +1464 -0
- roboticstoolbox/core/Eigen/src/Core/util/Memory.h +1163 -0
- roboticstoolbox/core/Eigen/src/Core/util/Meta.h +812 -0
- roboticstoolbox/core/Eigen/src/Core/util/NonMPL2.h +3 -0
- roboticstoolbox/core/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- roboticstoolbox/core/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- roboticstoolbox/core/Eigen/src/Core/util/StaticAssert.h +221 -0
- roboticstoolbox/core/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- roboticstoolbox/core/Eigen/src/Core/util/XprHelper.h +856 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- roboticstoolbox/core/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- roboticstoolbox/core/Eigen/src/Geometry/AlignedBox.h +486 -0
- roboticstoolbox/core/Eigen/src/Geometry/AngleAxis.h +247 -0
- roboticstoolbox/core/Eigen/src/Geometry/EulerAngles.h +114 -0
- roboticstoolbox/core/Eigen/src/Geometry/Homogeneous.h +501 -0
- roboticstoolbox/core/Eigen/src/Geometry/Hyperplane.h +282 -0
- roboticstoolbox/core/Eigen/src/Geometry/OrthoMethods.h +235 -0
- roboticstoolbox/core/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- roboticstoolbox/core/Eigen/src/Geometry/Quaternion.h +870 -0
- roboticstoolbox/core/Eigen/src/Geometry/Rotation2D.h +199 -0
- roboticstoolbox/core/Eigen/src/Geometry/RotationBase.h +206 -0
- roboticstoolbox/core/Eigen/src/Geometry/Scaling.h +188 -0
- roboticstoolbox/core/Eigen/src/Geometry/Transform.h +1563 -0
- roboticstoolbox/core/Eigen/src/Geometry/Translation.h +202 -0
- roboticstoolbox/core/Eigen/src/Geometry/Umeyama.h +166 -0
- roboticstoolbox/core/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- roboticstoolbox/core/Eigen/src/Householder/BlockHouseholder.h +110 -0
- roboticstoolbox/core/Eigen/src/Householder/Householder.h +176 -0
- roboticstoolbox/core/Eigen/src/Householder/HouseholderSequence.h +545 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- roboticstoolbox/core/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- roboticstoolbox/core/Eigen/src/Jacobi/Jacobi.h +483 -0
- roboticstoolbox/core/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- roboticstoolbox/core/Eigen/src/LU/Determinant.h +117 -0
- roboticstoolbox/core/Eigen/src/LU/FullPivLU.h +877 -0
- roboticstoolbox/core/Eigen/src/LU/InverseImpl.h +432 -0
- roboticstoolbox/core/Eigen/src/LU/PartialPivLU.h +624 -0
- roboticstoolbox/core/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- roboticstoolbox/core/Eigen/src/LU/arch/InverseSize4.h +351 -0
- roboticstoolbox/core/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- roboticstoolbox/core/Eigen/src/OrderingMethods/Amd.h +435 -0
- roboticstoolbox/core/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- roboticstoolbox/core/Eigen/src/OrderingMethods/Ordering.h +153 -0
- roboticstoolbox/core/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- roboticstoolbox/core/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- roboticstoolbox/core/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- roboticstoolbox/core/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- roboticstoolbox/core/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- roboticstoolbox/core/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- roboticstoolbox/core/Eigen/src/QR/HouseholderQR.h +434 -0
- roboticstoolbox/core/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- roboticstoolbox/core/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- roboticstoolbox/core/Eigen/src/SVD/BDCSVD.h +1366 -0
- roboticstoolbox/core/Eigen/src/SVD/JacobiSVD.h +812 -0
- roboticstoolbox/core/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- roboticstoolbox/core/Eigen/src/SVD/SVDBase.h +376 -0
- roboticstoolbox/core/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- roboticstoolbox/core/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- roboticstoolbox/core/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- roboticstoolbox/core/Eigen/src/SparseCore/AmbiVector.h +378 -0
- roboticstoolbox/core/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- roboticstoolbox/core/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- roboticstoolbox/core/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseAssign.h +270 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseBlock.h +571 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseDot.h +98 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseMap.h +305 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseProduct.h +181 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseRedux.h +49 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseRef.h +397 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseUtil.h +186 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseVector.h +478 -0
- roboticstoolbox/core/Eigen/src/SparseCore/SparseView.h +254 -0
- roboticstoolbox/core/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU.h +923 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- roboticstoolbox/core/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- roboticstoolbox/core/Eigen/src/SparseQR/SparseQR.h +758 -0
- roboticstoolbox/core/Eigen/src/StlSupport/StdDeque.h +116 -0
- roboticstoolbox/core/Eigen/src/StlSupport/StdList.h +106 -0
- roboticstoolbox/core/Eigen/src/StlSupport/StdVector.h +131 -0
- roboticstoolbox/core/Eigen/src/StlSupport/details.h +84 -0
- roboticstoolbox/core/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- roboticstoolbox/core/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- roboticstoolbox/core/Eigen/src/misc/Image.h +82 -0
- roboticstoolbox/core/Eigen/src/misc/Kernel.h +79 -0
- roboticstoolbox/core/Eigen/src/misc/RealSvd2x2.h +55 -0
- roboticstoolbox/core/Eigen/src/misc/blas.h +440 -0
- roboticstoolbox/core/Eigen/src/misc/lapack.h +152 -0
- roboticstoolbox/core/Eigen/src/misc/lapacke.h +16292 -0
- roboticstoolbox/core/Eigen/src/misc/lapacke_mangling.h +17 -0
- roboticstoolbox/core/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- roboticstoolbox/core/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- roboticstoolbox/core/Eigen/src/plugins/BlockMethods.h +1442 -0
- roboticstoolbox/core/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- roboticstoolbox/core/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- roboticstoolbox/core/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- roboticstoolbox/core/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- roboticstoolbox/core/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- roboticstoolbox/core/Eigen/src/plugins/ReshapedMethods.h +149 -0
- roboticstoolbox/core/fknm.cpp +1557 -0
- roboticstoolbox/core/fknm.h +55 -0
- roboticstoolbox/core/frne.c +351 -0
- roboticstoolbox/core/frne.h +96 -0
- roboticstoolbox/core/ik.cpp +301 -0
- roboticstoolbox/core/ik.h +59 -0
- roboticstoolbox/core/linalg.cpp +316 -0
- roboticstoolbox/core/linalg.h +64 -0
- roboticstoolbox/core/methods.cpp +372 -0
- roboticstoolbox/core/methods.h +32 -0
- roboticstoolbox/core/ne.c +493 -0
- roboticstoolbox/core/structs.cpp +24 -0
- roboticstoolbox/core/structs.h +62 -0
- roboticstoolbox/core/vmath.c +163 -0
- roboticstoolbox/core/vmath.h +32 -0
- roboticstoolbox/fknm.cp313-win_amd64.pyd +0 -0
- roboticstoolbox/frne.cp313-win_amd64.pyd +0 -0
- roboticstoolbox/mobile/Animations.py +485 -0
- roboticstoolbox/mobile/Bug2.py +455 -0
- roboticstoolbox/mobile/CurvaturePolyPlanner.py +179 -0
- roboticstoolbox/mobile/DistanceTransformPlanner.py +395 -0
- roboticstoolbox/mobile/DstarPlanner.py +591 -0
- roboticstoolbox/mobile/DubinsPlanner.py +474 -0
- roboticstoolbox/mobile/EKF.py +1617 -0
- roboticstoolbox/mobile/LatticePlanner.py +419 -0
- roboticstoolbox/mobile/OccGrid.py +613 -0
- roboticstoolbox/mobile/PRMPlanner.py +348 -0
- roboticstoolbox/mobile/ParticleFilter.py +706 -0
- roboticstoolbox/mobile/PlannerBase.py +1009 -0
- roboticstoolbox/mobile/PoseGraph.py +544 -0
- roboticstoolbox/mobile/QuinticPolyPlanner.py +349 -0
- roboticstoolbox/mobile/RRTPlanner.py +359 -0
- roboticstoolbox/mobile/ReedsSheppPlanner.py +545 -0
- roboticstoolbox/mobile/Vehicle.py +1909 -0
- roboticstoolbox/mobile/__init__.py +193 -0
- roboticstoolbox/mobile/drivers.py +390 -0
- roboticstoolbox/mobile/landmarkmap.py +181 -0
- roboticstoolbox/mobile/sensors.py +771 -0
- roboticstoolbox/models/DH/AL5D.py +121 -0
- roboticstoolbox/models/DH/Ball.py +87 -0
- roboticstoolbox/models/DH/Baxter.py +91 -0
- roboticstoolbox/models/DH/Cobra600.py +63 -0
- roboticstoolbox/models/DH/Coil.py +80 -0
- roboticstoolbox/models/DH/Hyper.py +83 -0
- roboticstoolbox/models/DH/Hyper3d.py +85 -0
- roboticstoolbox/models/DH/IRB140.py +159 -0
- roboticstoolbox/models/DH/Jaco.py +102 -0
- roboticstoolbox/models/DH/KR5.py +112 -0
- roboticstoolbox/models/DH/LWR4.py +85 -0
- roboticstoolbox/models/DH/Mico.py +102 -0
- roboticstoolbox/models/DH/Orion5.py +91 -0
- roboticstoolbox/models/DH/P8.py +80 -0
- roboticstoolbox/models/DH/Panda.py +178 -0
- roboticstoolbox/models/DH/Planar2.py +69 -0
- roboticstoolbox/models/DH/Planar3.py +51 -0
- roboticstoolbox/models/DH/Puma560.py +326 -0
- roboticstoolbox/models/DH/README.md +216 -0
- roboticstoolbox/models/DH/Sawyer.py +85 -0
- roboticstoolbox/models/DH/Stanford.py +147 -0
- roboticstoolbox/models/DH/TwoLink.py +109 -0
- roboticstoolbox/models/DH/UR10.py +124 -0
- roboticstoolbox/models/DH/UR3.py +98 -0
- roboticstoolbox/models/DH/UR5.py +98 -0
- roboticstoolbox/models/DH/Uprighttl.py +24 -0
- roboticstoolbox/models/DH/__init__.py +52 -0
- roboticstoolbox/models/ETS/Frankie.py +90 -0
- roboticstoolbox/models/ETS/GenericSeven.py +54 -0
- roboticstoolbox/models/ETS/Omni.py +74 -0
- roboticstoolbox/models/ETS/Panda.py +69 -0
- roboticstoolbox/models/ETS/Planar2.py +49 -0
- roboticstoolbox/models/ETS/Planar_Y.py +65 -0
- roboticstoolbox/models/ETS/Puma560.py +69 -0
- roboticstoolbox/models/ETS/XYPanda.py +84 -0
- roboticstoolbox/models/ETS/__init__.py +20 -0
- roboticstoolbox/models/README.md +9 -0
- roboticstoolbox/models/URDF/AL5D.py +54 -0
- roboticstoolbox/models/URDF/Fetch.py +70 -0
- roboticstoolbox/models/URDF/FetchCamera.py +71 -0
- roboticstoolbox/models/URDF/Frankie.py +75 -0
- roboticstoolbox/models/URDF/FrankieOmni.py +94 -0
- roboticstoolbox/models/URDF/KinovaGen3.py +71 -0
- roboticstoolbox/models/URDF/LBR.py +59 -0
- roboticstoolbox/models/URDF/Mico.py +68 -0
- roboticstoolbox/models/URDF/PR2.py +64 -0
- roboticstoolbox/models/URDF/Panda.py +67 -0
- roboticstoolbox/models/URDF/Puma560.py +97 -0
- roboticstoolbox/models/URDF/UR10.py +53 -0
- roboticstoolbox/models/URDF/UR3.py +53 -0
- roboticstoolbox/models/URDF/UR5.py +74 -0
- roboticstoolbox/models/URDF/Valkyrie.py +84 -0
- roboticstoolbox/models/URDF/YuMi.py +109 -0
- roboticstoolbox/models/URDF/__init__.py +53 -0
- roboticstoolbox/models/URDF/px100.py +56 -0
- roboticstoolbox/models/URDF/px150.py +56 -0
- roboticstoolbox/models/URDF/rx150.py +56 -0
- roboticstoolbox/models/URDF/rx200.py +56 -0
- roboticstoolbox/models/URDF/vx300.py +56 -0
- roboticstoolbox/models/URDF/vx300s.py +56 -0
- roboticstoolbox/models/URDF/wx200.py +56 -0
- roboticstoolbox/models/URDF/wx250.py +56 -0
- roboticstoolbox/models/URDF/wx250s.py +56 -0
- roboticstoolbox/models/__init__.py +7 -0
- roboticstoolbox/models/list.py +119 -0
- roboticstoolbox/robot/BaseRobot.py +3133 -0
- roboticstoolbox/robot/DHFactor.py +522 -0
- roboticstoolbox/robot/DHLink.py +981 -0
- roboticstoolbox/robot/DHRobot.py +2520 -0
- roboticstoolbox/robot/Dynamics.py +1620 -0
- roboticstoolbox/robot/ELink.py +23 -0
- roboticstoolbox/robot/ERobot.py +25 -0
- roboticstoolbox/robot/ET.py +1097 -0
- roboticstoolbox/robot/ETS.py +3542 -0
- roboticstoolbox/robot/Gripper.py +282 -0
- roboticstoolbox/robot/IK.py +1522 -0
- roboticstoolbox/robot/Link.py +1698 -0
- roboticstoolbox/robot/PoERobot.py +348 -0
- roboticstoolbox/robot/Robot.py +2100 -0
- roboticstoolbox/robot/RobotKinematics.py +1725 -0
- roboticstoolbox/robot/RobotProto.py +92 -0
- roboticstoolbox/robot/__init__.py +54 -0
- roboticstoolbox/tools/DHFactor.py +375 -0
- roboticstoolbox/tools/Ticker.py +53 -0
- roboticstoolbox/tools/__init__.py +54 -0
- roboticstoolbox/tools/data.py +187 -0
- roboticstoolbox/tools/jsingu.py +51 -0
- roboticstoolbox/tools/null.py +48 -0
- roboticstoolbox/tools/numerical.py +96 -0
- roboticstoolbox/tools/p_servo.py +106 -0
- roboticstoolbox/tools/params.py +11 -0
- roboticstoolbox/tools/plot.py +109 -0
- roboticstoolbox/tools/trajectory.py +1152 -0
- roboticstoolbox/tools/types.py +13 -0
- roboticstoolbox/tools/urdf/__init__.py +45 -0
- roboticstoolbox/tools/urdf/tests/data/ur5.urdf +341 -0
- roboticstoolbox/tools/urdf/tests/test_urdf.py +116 -0
- roboticstoolbox/tools/urdf/urdf.py +1976 -0
- roboticstoolbox/tools/urdf/utils.py +50 -0
- roboticstoolbox/tools/xacro/__init__.py +1148 -0
- roboticstoolbox/tools/xacro/cli.py +128 -0
- roboticstoolbox/tools/xacro/color.py +66 -0
- roboticstoolbox/tools/xacro/tests/CMakeLists.txt +4 -0
- roboticstoolbox/tools/xacro/tests/broken.xacro +1 -0
- roboticstoolbox/tools/xacro/tests/emoji.xacro +5 -0
- roboticstoolbox/tools/xacro/tests/include1.xacro +4 -0
- roboticstoolbox/tools/xacro/tests/include1.xml +1 -0
- roboticstoolbox/tools/xacro/tests/include2.xacro +4 -0
- roboticstoolbox/tools/xacro/tests/include2.xml +1 -0
- roboticstoolbox/tools/xacro/tests/robots/README +4 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/base_v0/base.gazebo.xacro +59 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/base_v0/base.transmission.xacro +24 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/base_v0/base.urdf.xacro +264 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/common.xacro +71 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/forearm_v0/forearm.gazebo.xacro +36 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/forearm_v0/forearm.transmission.xacro +20 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/forearm_v0/forearm.urdf.xacro +130 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/gazebo/gazebo.urdf.xacro +24 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/gripper_v0/gripper.gazebo.xacro +288 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/gripper_v0/gripper.transmission.xacro +50 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/gripper_v0/gripper.urdf.xacro +374 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/head_v0/head.gazebo.xacro +16 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/head_v0/head.transmission.xacro +34 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/head_v0/head.urdf.xacro +147 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/materials.urdf.xacro +52 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/pr2.urdf.xacro +157 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/pr2_1.11.4.xml +3781 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/double_stereo_camera.gazebo.xacro +16 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/double_stereo_camera.urdf.xacro +61 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/head_sensor_package.gazebo.xacro +20 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/head_sensor_package.urdf.xacro +63 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/hokuyo_lx30_laser.gazebo.xacro +39 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/hokuyo_lx30_laser.urdf.xacro +27 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/kinect_camera.gazebo.xacro +87 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/kinect_camera.urdf.xacro +55 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/kinect_prosilica_camera.gazebo.xacro +193 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/kinect_prosilica_camera.urdf.xacro +181 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/microstrain_3dmgx2_imu.gazebo.xacro +20 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/microstrain_3dmgx2_imu.urdf.xacro +25 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/projector_wg6802418.gazebo.xacro +31 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/projector_wg6802418.urdf.xacro +42 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/prosilica_gc2450_camera.gazebo.xacro +43 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/prosilica_gc2450_camera.urdf.xacro +49 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/stereo_camera.gazebo.xacro +23 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/stereo_camera.urdf.xacro +71 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/wge100_camera.gazebo.xacro +46 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/sensors/wge100_camera.urdf.xacro +47 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/shoulder_v0/shoulder.gazebo.xacro +40 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/shoulder_v0/shoulder.transmission.xacro +35 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/shoulder_v0/shoulder.urdf.xacro +167 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/tilting_laser_v0/tilting_laser.gazebo.xacro +11 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/tilting_laser_v0/tilting_laser.transmission.xacro +14 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/tilting_laser_v0/tilting_laser.urdf.xacro +60 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/torso_v0/torso.gazebo.xacro +37 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/torso_v0/torso.transmission.xacro +22 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/torso_v0/torso.urdf.xacro +122 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/upper_arm_v0/upper_arm.gazebo.xacro +39 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/upper_arm_v0/upper_arm.transmission.xacro +28 -0
- roboticstoolbox/tools/xacro/tests/robots/pr2/upper_arm_v0/upper_arm.urdf.xacro +173 -0
- roboticstoolbox/tools/xacro/tests/settings.yaml +9 -0
- roboticstoolbox/tools/xacro/tests/subdir/foo.xacro +3 -0
- roboticstoolbox/tools/xacro/tests/subdir/include-recursive.xacro +5 -0
- roboticstoolbox/tools/xacro/tests/subdir/include1.xml +1 -0
- roboticstoolbox/tools/xacro/tests/test_xacro.py +1418 -0
- roboticstoolbox/tools/xacro/xmlutils.py +152 -0
- roboticstoolbox_python-1.3.0.dist-info/METADATA +552 -0
- roboticstoolbox_python-1.3.0.dist-info/RECORD +673 -0
- roboticstoolbox_python-1.3.0.dist-info/WHEEL +5 -0
- roboticstoolbox_python-1.3.0.dist-info/entry_points.txt +6 -0
- roboticstoolbox_python-1.3.0.dist-info/licenses/LICENSE +21 -0
- spatialgeometry/__init__.py +32 -0
- spatialgeometry/geom/CollisionShape.py +419 -0
- spatialgeometry/geom/SceneGroup.py +26 -0
- spatialgeometry/geom/SceneNode.py +315 -0
- spatialgeometry/geom/Shape.py +420 -0
- spatialgeometry/geom/__init__.py +26 -0
- spatialgeometry/scene.py +107 -0
- spatialgeometry/tools/__init__.py +0 -0
- spatialgeometry/tools/stdout_supress.py +302 -0
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
See Wikipedia article (https://en.wikipedia.org/wiki/D*)
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import math
|
|
10
|
+
|
|
11
|
+
from sys import maxsize
|
|
12
|
+
from collections import namedtuple
|
|
13
|
+
from enum import IntEnum, auto
|
|
14
|
+
import matplotlib.pyplot as plt
|
|
15
|
+
import numpy as np
|
|
16
|
+
import matplotlib.cm as cm
|
|
17
|
+
from roboticstoolbox.mobile.PlannerBase import PlannerBase
|
|
18
|
+
from roboticstoolbox.mobile.OccGrid import BinaryOccupancyGrid, OccupancyGrid
|
|
19
|
+
import heapq
|
|
20
|
+
import bisect
|
|
21
|
+
import math
|
|
22
|
+
|
|
23
|
+
show_animation = True
|
|
24
|
+
|
|
25
|
+
# ======================================================================== #
|
|
26
|
+
|
|
27
|
+
# The following code is modified from Python Robotics
|
|
28
|
+
# https://github.com/AtsushiSakai/PythonRobotics/tree/master/PathPlanning
|
|
29
|
+
# D* grid planning
|
|
30
|
+
# Author: Nirnay Roy
|
|
31
|
+
# Copyright (c) 2016 - 2022 Atsushi Sakai and other contributors: https://github.com/AtsushiSakai/PythonRobotics/contributors
|
|
32
|
+
# Released under the MIT license: https://github.com/AtsushiSakai/PythonRobotics/blob/master/LICENSE
|
|
33
|
+
|
|
34
|
+
# for performance reasons there are some important differences compared to
|
|
35
|
+
# the version from Python Robotics:
|
|
36
|
+
#
|
|
37
|
+
# 1. replace the classic D* functions min__State(), get_kmin(), insert(), remove()
|
|
38
|
+
# with heapq.heappush() and heapq.heappop(). The open_list is now a list of
|
|
39
|
+
# tuples (k, _State) maintained by heapq, rather than a set
|
|
40
|
+
#
|
|
41
|
+
# 2. use enums rather than strings for cell state
|
|
42
|
+
#
|
|
43
|
+
# 3. lots of unnecessary inserting/deleting from the open_list due to arithmetic
|
|
44
|
+
# rounding in tests for costs h and k:
|
|
45
|
+
# - replace equality tests with math.isclose() which is faster than np.isclose()
|
|
46
|
+
# - add an offset to inequality tests, X > Y becomes X > Y + tol
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class _Tag(IntEnum):
|
|
50
|
+
NEW = auto()
|
|
51
|
+
OPEN = auto()
|
|
52
|
+
CLOSED = auto()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class _State:
|
|
56
|
+
def __init__(self, x, y):
|
|
57
|
+
self.x = x
|
|
58
|
+
self.y = y
|
|
59
|
+
self.parent = None # 'back pointer' to next _State
|
|
60
|
+
self.t = _Tag.NEW # open closed new
|
|
61
|
+
self.h = 0 # cost to goal
|
|
62
|
+
self.k = 0 # estimate of shortest path cost
|
|
63
|
+
|
|
64
|
+
def __str__(self):
|
|
65
|
+
return f"({self.x}, {self.y})" # [{self.h:.1f}, {self.k:.1f}]"
|
|
66
|
+
|
|
67
|
+
def __repr__(self):
|
|
68
|
+
return self.__str__()
|
|
69
|
+
|
|
70
|
+
def __lt__(self, other):
|
|
71
|
+
return True
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class _Map:
|
|
75
|
+
def __init__(self, row, col):
|
|
76
|
+
self.row = row
|
|
77
|
+
self.col = col
|
|
78
|
+
self._Map = self.init__Map()
|
|
79
|
+
|
|
80
|
+
def init__Map(self):
|
|
81
|
+
_Map_list = [] # list of rows
|
|
82
|
+
for i in range(self.row):
|
|
83
|
+
# for each row, make a list
|
|
84
|
+
tmp = []
|
|
85
|
+
for j in range(self.col):
|
|
86
|
+
tmp.append(_State(j, i)) # append column to the row
|
|
87
|
+
_Map_list.append(tmp) # append row to _Map
|
|
88
|
+
return _Map_list
|
|
89
|
+
|
|
90
|
+
_neighbours = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]
|
|
91
|
+
|
|
92
|
+
def get_neighbors(self, _State):
|
|
93
|
+
_State_list = []
|
|
94
|
+
|
|
95
|
+
for i, j in self._neighbours:
|
|
96
|
+
try:
|
|
97
|
+
if _State.x + i >= 0 and _State.y + j >= 0:
|
|
98
|
+
_State_list.append(self._Map[_State.y + j][_State.x + i])
|
|
99
|
+
except IndexError:
|
|
100
|
+
pass
|
|
101
|
+
return _State_list
|
|
102
|
+
|
|
103
|
+
_root2 = np.sqrt(2)
|
|
104
|
+
|
|
105
|
+
def cost(self, _State1, _State2):
|
|
106
|
+
c = (
|
|
107
|
+
self.costmap[_State1.y, _State1.x] + self.costmap[_State2.y, _State2.x]
|
|
108
|
+
) / 2
|
|
109
|
+
|
|
110
|
+
dx = _State1.x - _State2.x
|
|
111
|
+
dy = _State1.y - _State2.y
|
|
112
|
+
if dx == 0 or dy == 0:
|
|
113
|
+
# NSEW movement, distance of 1
|
|
114
|
+
return c
|
|
115
|
+
else:
|
|
116
|
+
# diagonal movement, distance of sqrt(2)
|
|
117
|
+
return c * self._root2
|
|
118
|
+
# return c * math.sqrt(()**2 +
|
|
119
|
+
# ()**2)
|
|
120
|
+
|
|
121
|
+
def show_h(self):
|
|
122
|
+
h = np.empty((self.col, self.row))
|
|
123
|
+
|
|
124
|
+
for x in range(self.col):
|
|
125
|
+
for y in range(self.row):
|
|
126
|
+
h[y, x] = self._Map[y][x].h
|
|
127
|
+
print(h)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class _Dstar:
|
|
131
|
+
def __init__(self, _Map, tol=1e-6):
|
|
132
|
+
self._Map = _Map
|
|
133
|
+
# self.open_list = set()
|
|
134
|
+
self.open_list = []
|
|
135
|
+
self.nexpand = 0
|
|
136
|
+
self.tol = tol
|
|
137
|
+
|
|
138
|
+
def process__State(self, verbose=False):
|
|
139
|
+
if verbose:
|
|
140
|
+
print(
|
|
141
|
+
"FRONTIER ", " ".join([f"({x[1].x}, {x[1].y})" for x in self.open_list])
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
# get _State from frontier
|
|
145
|
+
if len(self.open_list) == 0:
|
|
146
|
+
if verbose:
|
|
147
|
+
print(" x is None ")
|
|
148
|
+
return -1
|
|
149
|
+
k_old, x = heapq.heappop(self.open_list)
|
|
150
|
+
x.t = _Tag.CLOSED
|
|
151
|
+
|
|
152
|
+
self.nexpand += 1
|
|
153
|
+
|
|
154
|
+
if verbose:
|
|
155
|
+
print(f"EXPAND {x}, {k_old:.1f}")
|
|
156
|
+
|
|
157
|
+
if x.h > k_old + self.tol:
|
|
158
|
+
# RAISE _State
|
|
159
|
+
if verbose:
|
|
160
|
+
print(" raise")
|
|
161
|
+
for y in self._Map.get_neighbors(x):
|
|
162
|
+
if (
|
|
163
|
+
y.t is not _Tag.NEW
|
|
164
|
+
and y.h <= k_old - self.tol
|
|
165
|
+
and x.h > y.h + self._Map.cost(x, y) + self.tol
|
|
166
|
+
):
|
|
167
|
+
if verbose:
|
|
168
|
+
print(
|
|
169
|
+
f" {x} cost from {x.h:.1f} to {y.h + self._Map.cost(x, y):.1f}; parent from {x.parent} to {y}"
|
|
170
|
+
)
|
|
171
|
+
x.parent = y
|
|
172
|
+
x.h = y.h + self._Map.cost(x, y)
|
|
173
|
+
|
|
174
|
+
if math.isclose(x.h, k_old, rel_tol=0, abs_tol=self.tol):
|
|
175
|
+
# normal _State
|
|
176
|
+
if verbose:
|
|
177
|
+
print(" normal")
|
|
178
|
+
for y in self._Map.get_neighbors(x):
|
|
179
|
+
if (
|
|
180
|
+
y.t is _Tag.NEW
|
|
181
|
+
or (
|
|
182
|
+
y.parent == x
|
|
183
|
+
and not math.isclose(
|
|
184
|
+
y.h, x.h + self._Map.cost(x, y), rel_tol=0, abs_tol=self.tol
|
|
185
|
+
)
|
|
186
|
+
)
|
|
187
|
+
or (y.parent != x and y.h > x.h + self._Map.cost(x, y) + self.tol)
|
|
188
|
+
):
|
|
189
|
+
if verbose:
|
|
190
|
+
print(f" reparent {y} from {y.parent} to {x}")
|
|
191
|
+
y.parent = x
|
|
192
|
+
self.insert(y, x.h + self._Map.cost(x, y))
|
|
193
|
+
else:
|
|
194
|
+
# RAISE or LOWER _State
|
|
195
|
+
if verbose:
|
|
196
|
+
print(" raise/lower")
|
|
197
|
+
for y in self._Map.get_neighbors(x):
|
|
198
|
+
if y.t is _Tag.NEW or (
|
|
199
|
+
y.parent == x
|
|
200
|
+
and not math.isclose(
|
|
201
|
+
y.h, x.h + self._Map.cost(x, y), rel_tol=0, abs_tol=self.tol
|
|
202
|
+
)
|
|
203
|
+
):
|
|
204
|
+
if verbose:
|
|
205
|
+
print(
|
|
206
|
+
f" {y} cost from {y.h:.1f} to {y.h + self._Map.cost(x, y):.1f}; parent from {y.parent} to {x}; add to frontier"
|
|
207
|
+
)
|
|
208
|
+
y.parent = x
|
|
209
|
+
self.insert(y, x.h + self._Map.cost(x, y))
|
|
210
|
+
else:
|
|
211
|
+
if (
|
|
212
|
+
y.parent != x
|
|
213
|
+
and y.h > x.h + self._Map.cost(x, y) + self.tol
|
|
214
|
+
and x.t is _Tag.CLOSED
|
|
215
|
+
):
|
|
216
|
+
self.insert(x, x.h)
|
|
217
|
+
if verbose:
|
|
218
|
+
print(f" {x}, {x.h:.1f} add to frontier")
|
|
219
|
+
else:
|
|
220
|
+
if (
|
|
221
|
+
y.parent != x
|
|
222
|
+
and x.h > y.h + self._Map.cost(y, x) + self.tol
|
|
223
|
+
and y.t is _Tag.CLOSED
|
|
224
|
+
and y.h > k_old + self.tol
|
|
225
|
+
):
|
|
226
|
+
self.insert(y, y.h)
|
|
227
|
+
if verbose:
|
|
228
|
+
print(f" {y}, {y.h:.1f} add to frontier")
|
|
229
|
+
if verbose:
|
|
230
|
+
print()
|
|
231
|
+
|
|
232
|
+
if len(self.open_list) == 0:
|
|
233
|
+
return -1
|
|
234
|
+
else:
|
|
235
|
+
return self.open_list[0][0]
|
|
236
|
+
|
|
237
|
+
ninsert = 0
|
|
238
|
+
nin = 0
|
|
239
|
+
|
|
240
|
+
def insert(self, _State, h_new):
|
|
241
|
+
self.ninsert += 1
|
|
242
|
+
|
|
243
|
+
if _State.t is _Tag.NEW:
|
|
244
|
+
_State.k = h_new
|
|
245
|
+
|
|
246
|
+
elif _State.t is _Tag.OPEN:
|
|
247
|
+
k_new = min(_State.k, h_new)
|
|
248
|
+
if _State.k == k_new:
|
|
249
|
+
# k hasn't changed, and vertex already in frontier
|
|
250
|
+
# just update h and be done
|
|
251
|
+
_State.h = h_new
|
|
252
|
+
return
|
|
253
|
+
else:
|
|
254
|
+
# k has changed, we need to remove the vertex from the list
|
|
255
|
+
# and re-insert it
|
|
256
|
+
_State.k = k_new
|
|
257
|
+
|
|
258
|
+
# scan the list to find vertex, then remove it
|
|
259
|
+
# this is quite slow
|
|
260
|
+
for i, item in enumerate(self.open_list):
|
|
261
|
+
if item[1] is _State:
|
|
262
|
+
del self.open_list[i]
|
|
263
|
+
break
|
|
264
|
+
|
|
265
|
+
# _State.k = min(_State.k, h_new)
|
|
266
|
+
# # remove the item from the open list
|
|
267
|
+
# # print('node already in open list, remove it first')
|
|
268
|
+
# #TODO use bisect on old _State.k to find the entry
|
|
269
|
+
# for i, item in enumerate(self.open_list):
|
|
270
|
+
# if item[1] is _State:
|
|
271
|
+
# del self.open_list[i]
|
|
272
|
+
# break
|
|
273
|
+
|
|
274
|
+
elif _State.t is _Tag.CLOSED:
|
|
275
|
+
_State.k = min(_State.h, h_new)
|
|
276
|
+
|
|
277
|
+
_State.h = h_new
|
|
278
|
+
_State.t = _Tag.OPEN
|
|
279
|
+
|
|
280
|
+
# self.open_list.add(_State)
|
|
281
|
+
heapq.heappush(self.open_list, (_State.k, _State))
|
|
282
|
+
|
|
283
|
+
def modify_cost(self, x, newcost):
|
|
284
|
+
self._Map.costmap[x.y, x.x] = newcost
|
|
285
|
+
if x.t is _Tag.CLOSED:
|
|
286
|
+
self.insert(x, x.parent.h + self._Map.cost(x, x.parent))
|
|
287
|
+
if len(self.open_list) == 0:
|
|
288
|
+
return -1
|
|
289
|
+
else:
|
|
290
|
+
# lowest priority item is always at index 0 according to docs
|
|
291
|
+
return self.open_list[0][0]
|
|
292
|
+
|
|
293
|
+
def showparents(self):
|
|
294
|
+
for y in range(self._Map.row - 1, -1, -1):
|
|
295
|
+
if y == self._Map.row - 1:
|
|
296
|
+
print(" ", end="")
|
|
297
|
+
for x in range(self._Map.col):
|
|
298
|
+
print(f" {x} ", end="")
|
|
299
|
+
print()
|
|
300
|
+
print(f"{y}: ", end="")
|
|
301
|
+
for x in range(self._Map.col):
|
|
302
|
+
x = self._Map._Map[y][x]
|
|
303
|
+
par = x.parent
|
|
304
|
+
if par is None:
|
|
305
|
+
print(" G ", end="")
|
|
306
|
+
else:
|
|
307
|
+
print(f"({par.x},{par.y}) ", end="")
|
|
308
|
+
print()
|
|
309
|
+
print()
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
# ====================== RTB wrapper ============================= #
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
# Copyright (c) 2022 Peter Corke: https://github.com/petercorke/robotics-toolbox-python
|
|
316
|
+
# Released under the MIT license: https://github.com/AtsushiSakai/PythonRobotics/blob/master/LICENSE
|
|
317
|
+
class DstarPlanner(PlannerBase):
|
|
318
|
+
r"""
|
|
319
|
+
D* path planner
|
|
320
|
+
|
|
321
|
+
:param costmap: traversability costmap
|
|
322
|
+
:type costmap: OccGrid or ndarray(w,h)
|
|
323
|
+
:param kwargs: common planner options, see :class:`PlannerBase`
|
|
324
|
+
|
|
325
|
+
================== ========================
|
|
326
|
+
Feature Capability
|
|
327
|
+
================== ========================
|
|
328
|
+
Plan :math:`\mathbb{R}^2`, discrete
|
|
329
|
+
Obstacle avoidance Yes, occupancy grid
|
|
330
|
+
Curvature Discontinuous
|
|
331
|
+
Motion Omnidirectional
|
|
332
|
+
================== ========================
|
|
333
|
+
|
|
334
|
+
Creates a planner that finds the minimum-cost path between two points in the
|
|
335
|
+
plane using omnidirectional motion. The path comprises a set of 8-way
|
|
336
|
+
connected points in adjacent cells.
|
|
337
|
+
|
|
338
|
+
The map is described by a 2D ``costmap`` whose elements indicate the cost
|
|
339
|
+
of traversing that cell. The cost of diagonal traverse is :math:`\sqrt{2}`
|
|
340
|
+
the value of the cell. An infinite cost indicates an untraversable cell
|
|
341
|
+
or obstacle.
|
|
342
|
+
|
|
343
|
+
Example:
|
|
344
|
+
|
|
345
|
+
.. runblock:: pycon
|
|
346
|
+
|
|
347
|
+
>>> from roboticstoolbox import DstarPlanner
|
|
348
|
+
>>> import numpy as np
|
|
349
|
+
>>> costmap = np.ones((6, 6));
|
|
350
|
+
>>> costmap[2:5, 3:5] = 10
|
|
351
|
+
>>> ds = DstarPlanner(costmap, goal=(1, 1));
|
|
352
|
+
>>> ds.plan()
|
|
353
|
+
>>> path, status = ds.query(start=(5, 4))
|
|
354
|
+
>>> print(path.T)
|
|
355
|
+
>>> print(status)
|
|
356
|
+
|
|
357
|
+
:thanks: based on D* grid planning included from `Python Robotics <https://github.com/AtsushiSakai/PythonRobotics/tree/master/PathPlanning>`_
|
|
358
|
+
:seealso: :class:`PlannerBase`
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
def __init__(self, costmap=None, **kwargs):
|
|
362
|
+
super().__init__(ndims=2, **kwargs)
|
|
363
|
+
|
|
364
|
+
if isinstance(costmap, np.ndarray):
|
|
365
|
+
self.costmap = costmap
|
|
366
|
+
elif isinstance(costmap, OccupancyGrid):
|
|
367
|
+
self.costmap = costmap.grid
|
|
368
|
+
elif self.occgrid is not None:
|
|
369
|
+
self.costmap = np.where(self.occgrid.grid > 0, np.inf, 1)
|
|
370
|
+
else:
|
|
371
|
+
raise ValueError("unknown type of map")
|
|
372
|
+
self._Map = _Map(self.costmap.shape[0], self.costmap.shape[1])
|
|
373
|
+
self._Map.costmap = self.costmap
|
|
374
|
+
self._Dstar = _Dstar(self._Map) # , tol=0)
|
|
375
|
+
|
|
376
|
+
def plan(self, goal=None, animate=False, progress=True, summary=False):
|
|
377
|
+
r"""
|
|
378
|
+
Plan D* path
|
|
379
|
+
|
|
380
|
+
:param goal: goal position :math:`(x, y)`, defaults to previously set value
|
|
381
|
+
:type goal: array_like(2), optional
|
|
382
|
+
:param animate: animate the planning algorithm iterations, defaults to False
|
|
383
|
+
:type animate: bool, optional
|
|
384
|
+
:param progress: show progress bar, defaults to True
|
|
385
|
+
:type progress: bool, optional
|
|
386
|
+
|
|
387
|
+
Compute the minimum-cost obstacle-free distance to the goal from all
|
|
388
|
+
points in the grid.
|
|
389
|
+
"""
|
|
390
|
+
if goal is not None:
|
|
391
|
+
self.goal = goal
|
|
392
|
+
|
|
393
|
+
if self._goal is None:
|
|
394
|
+
raise ValueError("No goal specified here or in constructor")
|
|
395
|
+
|
|
396
|
+
self._goal = self._goal.astype(int)
|
|
397
|
+
|
|
398
|
+
goal_State = self._Map._Map[self._goal[1]][self._goal[0]]
|
|
399
|
+
self.goal_State = goal_State
|
|
400
|
+
|
|
401
|
+
# self._Dstar.open_list.add(goal_State)
|
|
402
|
+
self._Dstar.insert(goal_State, 0)
|
|
403
|
+
|
|
404
|
+
while True:
|
|
405
|
+
ret = self._Dstar.process__State()
|
|
406
|
+
# print('plan', ret, len(self._Dstar.open_list))
|
|
407
|
+
|
|
408
|
+
if ret == -1:
|
|
409
|
+
break
|
|
410
|
+
|
|
411
|
+
if summary:
|
|
412
|
+
print(self._Dstar.ninsert, self._Dstar.nin)
|
|
413
|
+
|
|
414
|
+
@property
|
|
415
|
+
def nexpand(self):
|
|
416
|
+
"""
|
|
417
|
+
Number of node expansions
|
|
418
|
+
|
|
419
|
+
:return: number of expansions
|
|
420
|
+
:rtype: int
|
|
421
|
+
|
|
422
|
+
This number will increase during initial planning, and also if
|
|
423
|
+
replanning is invoked during the :meth:`query`.
|
|
424
|
+
"""
|
|
425
|
+
return self._Dstar.nexpand
|
|
426
|
+
|
|
427
|
+
def query(self, start, sensor=None, animate=False, verbose=False):
|
|
428
|
+
"""
|
|
429
|
+
Find path with replanning
|
|
430
|
+
|
|
431
|
+
:param start: start position :math:`(x,y)`
|
|
432
|
+
:type start: array_like(2)
|
|
433
|
+
:param sensor: sensor function, defaults to None
|
|
434
|
+
:type sensor: callable, optional
|
|
435
|
+
:param animate: animate the motion of the robot, defaults to False
|
|
436
|
+
:type animate: bool, optional
|
|
437
|
+
:param verbose: display detailed diagnostic information about D* operations, defaults to False
|
|
438
|
+
:type verbose: bool, optional
|
|
439
|
+
:return: path from start to goal, one point :math:`(x, y)` per row
|
|
440
|
+
:rtype: ndarray(N,2)
|
|
441
|
+
|
|
442
|
+
If ``sensor`` is None then the plan determined by the ``plan`` phase
|
|
443
|
+
is used unaltered.
|
|
444
|
+
|
|
445
|
+
If ``sensor`` is not None it must be callable, and is called at each
|
|
446
|
+
step of the path with the current robot coordintes:
|
|
447
|
+
|
|
448
|
+
sensor((x, y))
|
|
449
|
+
|
|
450
|
+
and mimics the behaviour of a simple sensor onboard the robot which can
|
|
451
|
+
dynamically change the costmap. The function return a list (0 or more)
|
|
452
|
+
of 3-tuples (x, y, newcost) which are the coordinates of cells and their
|
|
453
|
+
cost. If the cost has changed this will trigger D* incremental
|
|
454
|
+
replanning. In this case the value returned by :meth:`nexpand` will
|
|
455
|
+
increase, according to the severity of the replanning.
|
|
456
|
+
|
|
457
|
+
:seealso: :meth:`plan`
|
|
458
|
+
"""
|
|
459
|
+
self.start = start
|
|
460
|
+
start_State = self._Map._Map[start[1]][start[0]]
|
|
461
|
+
s = start_State
|
|
462
|
+
s = s.parent
|
|
463
|
+
tmp = start_State
|
|
464
|
+
|
|
465
|
+
if sensor is not None and not callable(sensor):
|
|
466
|
+
raise ValueError("sensor must be callable")
|
|
467
|
+
|
|
468
|
+
cost = tmp.h
|
|
469
|
+
self.goal_State.h = 0
|
|
470
|
+
|
|
471
|
+
path = []
|
|
472
|
+
while True:
|
|
473
|
+
path.append((tmp.x, tmp.y))
|
|
474
|
+
if tmp == self.goal_State:
|
|
475
|
+
break
|
|
476
|
+
|
|
477
|
+
# x, y = tmp.parent.x, tmp.parent.y
|
|
478
|
+
|
|
479
|
+
if sensor is not None:
|
|
480
|
+
changes = sensor((tmp.x, tmp.y))
|
|
481
|
+
if changes is not None:
|
|
482
|
+
# make changes to the plan
|
|
483
|
+
for x, y, newcost in changes:
|
|
484
|
+
X = self._Dstar._Map._Map[y][x]
|
|
485
|
+
# print(f"change cost at ({x}, {y}) to {newcost}")
|
|
486
|
+
val = self._Dstar.modify_cost(X, newcost)
|
|
487
|
+
# propagate the changes to plan
|
|
488
|
+
print("propagate")
|
|
489
|
+
# self._Dstar.showparents()
|
|
490
|
+
while val != -1 and val < tmp.h:
|
|
491
|
+
val = self._Dstar.process__State(verbose=verbose)
|
|
492
|
+
# print('open set', len(self._Dstar.open_list))
|
|
493
|
+
# self._Dstar.showparents()
|
|
494
|
+
|
|
495
|
+
tmp = tmp.parent
|
|
496
|
+
# print('move to ', tmp)
|
|
497
|
+
|
|
498
|
+
status = namedtuple(
|
|
499
|
+
"_DstarStatus",
|
|
500
|
+
[
|
|
501
|
+
"cost",
|
|
502
|
+
],
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
return np.array(path), status(cost)
|
|
506
|
+
|
|
507
|
+
# # Just feed self._h into plot function from parent as p
|
|
508
|
+
|
|
509
|
+
# def next(self, current):
|
|
510
|
+
# if not self._valid_plan:
|
|
511
|
+
# Error("Cost _Map has changed, replan")
|
|
512
|
+
# # x = sub2ind(np.shape(self._costmap), current[1], current[0])
|
|
513
|
+
# # x = self._b[x]
|
|
514
|
+
# i = np.ravel_multi_index([current[1], current[0]], self._costmap.shape)
|
|
515
|
+
# i = self._b[i]
|
|
516
|
+
|
|
517
|
+
# if i == 0:
|
|
518
|
+
# return None # we have arrived
|
|
519
|
+
# else:
|
|
520
|
+
# x = np.unravel_index((i), self._costmap.shape)
|
|
521
|
+
# return x[1], x[0]
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
if __name__ == "__main__":
|
|
525
|
+
og = np.zeros((10, 10))
|
|
526
|
+
og[4:8, 3:6] = 1
|
|
527
|
+
print(og)
|
|
528
|
+
|
|
529
|
+
ds = DstarPlanner(occgrid=og)
|
|
530
|
+
print(ds.costmap)
|
|
531
|
+
|
|
532
|
+
start = (1, 1)
|
|
533
|
+
goal = (7, 6)
|
|
534
|
+
|
|
535
|
+
ds.plan(goal=goal)
|
|
536
|
+
ds._Map.show_h()
|
|
537
|
+
|
|
538
|
+
# path, status = ds.query(start=start)
|
|
539
|
+
# print(path)
|
|
540
|
+
# print(status)
|
|
541
|
+
|
|
542
|
+
# ds.plot(path=path)
|
|
543
|
+
|
|
544
|
+
def sensorfunc(pos):
|
|
545
|
+
if pos == (3, 3):
|
|
546
|
+
changes = []
|
|
547
|
+
for x in range(3, 6):
|
|
548
|
+
for y in range(0, 4):
|
|
549
|
+
changes.append((x, y, 100))
|
|
550
|
+
return changes
|
|
551
|
+
|
|
552
|
+
path2, status2 = ds.query(start=start, sensor=sensorfunc, verbose=False)
|
|
553
|
+
print(ds._Map.costmap)
|
|
554
|
+
|
|
555
|
+
ds._Map.show_h()
|
|
556
|
+
|
|
557
|
+
# ds._Dstar.replan()
|
|
558
|
+
|
|
559
|
+
# path2, status = ds.query(start=start)
|
|
560
|
+
print(path2)
|
|
561
|
+
print(status2)
|
|
562
|
+
|
|
563
|
+
ds.plot(path=path2)
|
|
564
|
+
# ds.plot(path=path2, block=True)
|
|
565
|
+
|
|
566
|
+
# obstacle zone
|
|
567
|
+
# m.set_cost([30, 60, 20, 60], np.inf)
|
|
568
|
+
|
|
569
|
+
# start = [10, 10]
|
|
570
|
+
# goal = [70, 70]
|
|
571
|
+
# if show_animation:
|
|
572
|
+
# m.plot()
|
|
573
|
+
# plt.plot(start[0], start[1], "og")
|
|
574
|
+
# plt.plot(goal[0], goal[1], "xb")
|
|
575
|
+
# plt.axis("equal")
|
|
576
|
+
|
|
577
|
+
# start = m._Map[start[0]][start[1]]
|
|
578
|
+
# end = m._Map[goal[0]][goal[1]]
|
|
579
|
+
# _Dstar = _Dstar(m)
|
|
580
|
+
# rx, ry = _Dstar.run(start, end)
|
|
581
|
+
|
|
582
|
+
# if show_animation:
|
|
583
|
+
# plt.plot(rx, ry, "-r")
|
|
584
|
+
# plt.show(block=True)
|
|
585
|
+
|
|
586
|
+
# # costly zone
|
|
587
|
+
# m.set_cost([30, 40, 60, 80], 1.70, modify=_Dstar)
|
|
588
|
+
|
|
589
|
+
# _Dstar.replan()
|
|
590
|
+
|
|
591
|
+
plt.show(block=True)
|