MCPcopy Create free account

hub / github.com/cmower/optas / functions

Functions714 in github.com/cmower/optas

↓ 76 callersMethodappend
(self, actor)
optas/visualize.py:37
↓ 72 callersFunctionisclose
(A: np.ndarray, B: np.ndarray, atol=1e-08)
tests/test_models.py:26
↓ 69 callersMethodsumsqr
! Sum the square values of the quaternion elements. @return Result of the sum of square values of the quaternion.
optas/spatialmath.py:314
↓ 59 callersMethodadd_cost_term
! Add cost term to the optimization problem. @param name Name for cost function. @param cost_term Cost term, must be an array with sh
optas/builder.py:276
↓ 54 callersMethodget_random_joint_positions
! Random joint positions within actuator limits and optionally within a box for a given base link. @param n Number of joint positions. Defaul
optas/models.py:669
↓ 44 callersMethodvec
! Vectorize SXContainer. @return Array containing the vectorized form for the instance.
optas/sx_container.py:83
↓ 42 callersMethodadd_parameter
! Add a parameter to the optimization problem. @param name Name of parameter array. @param m Number of rows in parameter array. Defau
optas/builder.py:263
↓ 40 callersMethodget_model_states
! Get the full state trajectory for a given model. @param name Name of the model. @param time_deriv The time-deriviative required (i.
optas/builder.py:137
↓ 29 callersMethodget_name
! Return the name of the model. @return Name of the model.
optas/models.py:123
↓ 29 callersFunctionisclose
(A: np.ndarray, B: np.ndarray)
tests/test_optimization.py:12
↓ 28 callersMethodbuild
! Build the optimization problem.
optas/builder.py:545
↓ 26 callersFunctionisclose
(A: np.ndarray, B: np.ndarray)
tests/test_spatialmath.py:40
↓ 26 callersMethodnumel
! Return the number of elements. @return Number of elements in the SXContainer instance.
optas/sx_container.py:91
↓ 26 callersMethodsetup
! Setup solver, note this method must return self. This is an abstract method.
optas/solver.py:99
↓ 25 callersMethodadd_equality_constraint
! Add the equality constraint lhs == rhs to the optimization problem. @param name Name for the constraint. @param lhs Left-hand side
optas/builder.py:338
↓ 24 callersMethodadd_leq_inequality_constraint
! Add the inequality constraint lhs <= rhs to the optimization problem. @param name Name for the constraint. @param lhs Left-hand sid
optas/builder.py:302
↓ 23 callersMethodgetquat
! Return the quaternion vector. @return The quaternion as an array.
optas/spatialmath.py:377
↓ 22 callersMethodget_global_link_position
! Get the link position in the global frame for a given joint state q. @param link Name of the end-effector link. @param q Joint posi
optas/models.py:926
↓ 22 callersMethodmake_function
! Automate function generation. This is an internal function for the RobotModel class and <b>SHOULD NOT</b> be used.
optas/models.py:729
↓ 22 callersMethodreset_parameters
! Reset the parameters for the optimization problem. @param p Specifies the parameters.
optas/solver.py:110
↓ 22 callersMethodsolve
(self)
example/experiment2.py:58
↓ 21 callersMethodget_model_state
! Get the model state at a given time. @param name Name of the model. @param t Index of the desired state. @param time_deriv
optas/builder.py:124
↓ 18 callersFunctionrandom_vector
(lo=-1, hi=1, n=3)
tests/test_spatialmath.py:21
↓ 18 callersMethodstart
(self)
example/pybullet_api.py:60
↓ 17 callersMethodfix_configuration
! Fix configuration. @param name Name of model. @param config The configuration. When None is passed then it is considered to be zero
optas/builder.py:525
↓ 17 callersMethodget_root_link
! The root link name. @return The name of the root link.
optas/models.py:622
↓ 15 callersMethodinterpolate
! Interpolate a trajectory @param traj The trajectory to be interpolated where the columns correspond to the states over time. @param
optas/solver.py:240
↓ 15 callersMethodinv
! Quaternion inverse. @return Inverse quaternion.
optas/spatialmath.py:321
↓ 15 callersFunctionskew
! Create skew-symmetric matrix. If V (1x1) then (order 2) S = | 0 -v | | v 0 | and if V (1x3) then (order 3) S =
optas/spatialmath.py:203
↓ 14 callersMethod_assert_correct_type
(value, correct_type=(optas.SX, optas.DM))
tests/test_spatialmath.py:61
↓ 14 callersFunctionmain
(q=None)
tests/tester_robot_model.py:27
↓ 13 callersMethodadd_bound_inequality_constraint
! Add the inequality constraint lhs <= mid <= rhs to the optimization problem. @param name Name for the constraint. @param lhs Left-h
optas/builder.py:320
↓ 13 callersMethodcheck_items
(self, items_label)
tests/test_models.py:264
↓ 13 callersMethodenforce_model_limits
! Enforce model limits. @param name Name of model. @param time_deriv The time-deriviative required (i.e. position is 0, velocity is 1
optas/builder.py:471
↓ 13 callersMethodintegrate_model_states
! Integrates the model states over time. @param name Name of the model. @param time_deriv The time-deriviative required (i.e. positio
optas/builder.py:419
↓ 13 callersFunctionload_main_function
(filename)
tests/test_examples.py:22
↓ 13 callersMethodreset_initial_seed
! Reset initial seed for the optimization problem. @param x0 The initial seed.
optas/solver.py:103
↓ 12 callersFunctionI3
! 3-by-3 identity matrix. @return Identity matrix of order 3.
optas/spatialmath.py:73
↓ 12 callersMethodcmd
(self, q)
example/pybullet_api.py:145
↓ 12 callersFunctionfun_known
(x, p)
tests/test_optimization.py:95
↓ 12 callersMethodget_global_link_transform
! Get the link transform in the global frame for a given joint state q. @param link Name of the end-effector link. @param q Joint pos
optas/models.py:828
↓ 11 callersMethod_random_quaternion
(self)
tests/test_spatialmath.py:385
↓ 11 callersMethodadd_geq_inequality_constraint
! Add the inequality constraint lhs >= rhs to the optimization problem. @param name Name for the constraint. @param lhs Left-hand sid
optas/builder.py:288
↓ 11 callersMethodget_urdf
(self)
optas/models.py:323
↓ 10 callersFunctiona_known
(x, p)
tests/test_optimization.py:185
↓ 10 callersMethodf
! Internal method.
optas/solver.py:716
↓ 10 callersMethodget_joint_axis
! Get the axis of a joint. @param The joint of interest. @return The normalized joint axis.
optas/models.py:653
↓ 10 callersFunctionk_known
(x, p)
tests/test_optimization.py:182
↓ 10 callersFunctionrandom_vector
(lo=-1, hi=1, n=3)
tests/test_optas_utils.py:11
↓ 10 callersFunctionrpy2r
! Roll-pitch-yaw angles to SO(3) rotation matrix. @param rpy Roll-Pitch-Yaw angles in radians. @param opt Order option. Acceptable inputs:
optas/spatialmath.py:161
↓ 9 callersMethod_optas_result
(T)
tests/test_spatialmath.py:314
↓ 9 callersMethodclose
(self)
example/pybullet_api.py:66
↓ 9 callersMethoddict2vec
! Vectorize dictionary with same layout as container. @param d Dictionary containing values to be vectorized. @return Vectorized form
optas/sx_container.py:113
↓ 9 callersMethodget_global_link_geometric_jacobian
! Compute the geometric Jacobian matrix in the global frame. @param link Name of the end-effector link. @param q Joint position array
optas/models.py:1201
↓ 9 callersMethodget_global_link_rotation
! Get the link rotation in the global frame for a given joint state q. @param link Name of the end-effector link. @param q Joint posi
optas/models.py:988
↓ 9 callersFunctionrt2tr
! Convert rotation and translation to homogeneous transform. @param R A 3-by-3 rotation matrix. @param t A vector with 3 elements. @retur
optas/spatialmath.py:189
↓ 9 callersMethodstop
(self)
example/pybullet_api.py:63
↓ 8 callersMethod_x
! Return the decision variables as a casadi.SX vector. @return Symbolic decision variables.
optas/builder.py:206
↓ 8 callersMethodget_global_link_position_function
! Get the function that computes the global position of a given link. @param link Name of the end-effector link. @param n Number of j
optas/models.py:935
↓ 8 callersMethodget_model
! Return the model with given name. @param name Name of the model. @return A task or robot model.
optas/builder.py:116
↓ 8 callersMethodinitial_configuration
! Set initial configuration. @param name Name of model. @param init Initial configuration. If None is passed then this is assumed to
optas/builder.py:511
↓ 8 callersMethodsplit
! Split the quaternion into its xyzw parts. @return The xyzw parts of the quaternion.
optas/spatialmath.py:291
↓ 8 callersMethodstate_parameter_name
! Return the parameter name. @param time_deriv The time-deriviative required (i.e. position is 0, velocity is 1, etc.) @return The pa
optas/models.py:141
↓ 7 callersMethod__init__
! Initializer for the Optimization class. @param decision_variables SXContainer containing decision variables. @param parameters SXCo
optas/optimization.py:60
↓ 7 callersMethodget_actuated_joint_index
! Get the joint index for a given joint name. @param The name of the joint. @return Index for the joint.
optas/models.py:661
↓ 7 callersMethodget_global_link_quaternion
! Get a quaternion in the global frame. @param link Name of the end-effector link. @param q Joint position array. @return Qua
optas/models.py:1051
↓ 7 callersMethodline
! Draw a line. @param start The start of the line. @param end The end of the line. @param rgb The Red-Green-Blue values in ra
optas/visualize.py:247
↓ 7 callersMethodq
(self)
example/pybullet_api.py:164
↓ 7 callersMethodset_rgba
! Set the RGB and alpha channels for an actor. @param actor A vtk actor object. @param rgb The Red-Green-Blue values in range [0, 1].
optas/visualize.py:211
↓ 7 callersMethodshow
()
example/point_mass_mpc.py:350
↓ 6 callersMethod_symbolic_quaternion
(self)
tests/test_spatialmath.py:392
↓ 6 callersMethodgrid_floor
! Draw a grid floor. @param num_cells The number of cells for the grid floor. @param rgb The Red-Green-Blue values in range [0, 1].
optas/visualize.py:676
↓ 6 callersFunctionrandom_T
()
tests/test_spatialmath.py:29
↓ 6 callersFunctionrandom_angle
()
tests/test_spatialmath.py:17
↓ 6 callersMethodreset
(self, t, qc)
example/experiment2.py:54
↓ 6 callersMethodsphere
! Draw a sphere. @param radius The radius of the sphere. @param position The position of the sphere. @param rgb The Red-Green
optas/visualize.py:296
↓ 6 callersMethodstate_name
! Return the state name. @param time_deriv The time-deriviative required (i.e. position is 0, velocity is 1, etc.) @return The state
optas/models.py:130
↓ 6 callersMethodv
! Internal method.
optas/solver.py:728
↓ 5 callersMethodadd_decision_variables
! Add decision variables to the optimization problem. @param name Name of decision variable array. @param m Number of rows in decisio
optas/builder.py:246
↓ 5 callersFunctionangvec2r
! Convert angle and vector orientation to a rotation matrix. This method uses Rodrigue's formula. @param theta Angle of rotation (radians). @
optas/spatialmath.py:90
↓ 5 callersMethodfromrpy
! Return a quaternion from Roll-Pitch-Yaw angles. @param rpy Roll-Pitch-Yaw angles (radians). @return An instance of the Quaternion c
optas/spatialmath.py:331
↓ 5 callersMethodget_global_link_quaternion_function
! Get the function that computes a quaternion in the global frame. @param link Name of the end-effector link. @param n Number of join
optas/models.py:1090
↓ 5 callersMethodget_joint_origin
! Get the origin for the joint. @param The joint of interest. @return The position and orientation of the joint.
optas/models.py:642
↓ 5 callersMethodget_link_geometric_jacobian
! Get the geometric jacobian in a given base link. @param link Name of the end-effector link. @param q Joint position array.
optas/models.py:1322
↓ 5 callersMethodgetrpy
! Return the quaternion as Roll-Pitch-Yaw angles. @return The RPY Euler angles (in radians).
optas/spatialmath.py:384
↓ 5 callersFunctionisclose
(A: np.ndarray, B: np.ndarray)
tests/test_optas_utils.py:15
↓ 5 callersFunctionrandom_rotation_matrix
()
tests/test_spatialmath.py:25
↓ 5 callersMethodsolve
! Solve the optimization problem. @return A dictionary containing the solution.
optas/solver.py:126
↓ 5 callersFunctiontransl
! SE(3) translational homogeneous transform. @param T Homogeneous transformation matrix. @return Translation part of the homogeneous transfor
optas/spatialmath.py:258
↓ 5 callersFunctionv_known
(x, p)
tests/test_optimization.py:192
↓ 4 callersFunctionderive_jacobian_and_hessian_functions
! Compute the Jacobian and Hessian for a given function using automatic differentiation. @param name The function name. @param fun The CasADi
optas/optimization.py:8
↓ 4 callersMethoddid_solve
! Returns true when the solver solved the previous problem, false otherwise. This is an abstract method. @return Result of whether the solver
optas/solver.py:254
↓ 4 callersFunctionfigure_eight
(t)
example/experiment2.py:45
↓ 4 callersMethodfromangvec
! Return a quaternion from angle-vector form. @param theta Angle of rotation (radians). @param v Direction vector to rotate about.
optas/spatialmath.py:365
↓ 4 callersMethodfromvec
! Return a quaternion from a quaternion vector array. @param q Quaternion as an array. @return An instance of the Quaternion class.
optas/spatialmath.py:352
↓ 4 callersMethodget_global_link_linear_jacobian
! Compute the linear part of the geometric jacobian in the global frame. @param link Name of the end-effector link. @param q Joint po
optas/models.py:1413
↓ 4 callersMethodget_joint_lower_limit
! Return the lower limit for a given joint. @param joint The joint instance from the URDF. @return The lower limit, when undefined th
optas/models.py:438
↓ 4 callersMethodget_joint_upper_limit
! Return the upper limit for a given joint. @param joint The joint instance from the URDF. @return The upper limit, when undefined th
optas/models.py:448
↓ 4 callersMethodget_limits
! Return the model limits. @param time_deriv The time-deriviative required (i.e. position is 0, velocity is 1, etc.) @return lower Th
optas/models.py:163
↓ 4 callersMethodget_link_transform
! Get the link transform in a given base frame. @param link Name of the end-effector link. @param q Joint position array. @pa
optas/models.py:886
next →1–100 of 714, ranked by callers