Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cmower/optas
/ functions
Functions
714 in github.com/cmower/optas
⨍
Functions
714
◇
Types & classes
100
↳
Endpoints
23
↓ 76 callers
Method
append
(self, actor)
optas/visualize.py:37
↓ 72 callers
Function
isclose
(A: np.ndarray, B: np.ndarray, atol=1e-08)
tests/test_models.py:26
↓ 69 callers
Method
sumsqr
! Sum the square values of the quaternion elements. @return Result of the sum of square values of the quaternion.
optas/spatialmath.py:314
↓ 59 callers
Method
add_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 callers
Method
get_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 callers
Method
vec
! Vectorize SXContainer. @return Array containing the vectorized form for the instance.
optas/sx_container.py:83
↓ 42 callers
Method
add_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 callers
Method
get_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 callers
Method
get_name
! Return the name of the model. @return Name of the model.
optas/models.py:123
↓ 29 callers
Function
isclose
(A: np.ndarray, B: np.ndarray)
tests/test_optimization.py:12
↓ 28 callers
Method
build
! Build the optimization problem.
optas/builder.py:545
↓ 26 callers
Function
isclose
(A: np.ndarray, B: np.ndarray)
tests/test_spatialmath.py:40
↓ 26 callers
Method
numel
! Return the number of elements. @return Number of elements in the SXContainer instance.
optas/sx_container.py:91
↓ 26 callers
Method
setup
! Setup solver, note this method must return self. This is an abstract method.
optas/solver.py:99
↓ 25 callers
Method
add_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 callers
Method
add_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 callers
Method
getquat
! Return the quaternion vector. @return The quaternion as an array.
optas/spatialmath.py:377
↓ 22 callers
Method
get_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 callers
Method
make_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 callers
Method
reset_parameters
! Reset the parameters for the optimization problem. @param p Specifies the parameters.
optas/solver.py:110
↓ 22 callers
Method
solve
(self)
example/experiment2.py:58
↓ 21 callers
Method
get_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 callers
Function
random_vector
(lo=-1, hi=1, n=3)
tests/test_spatialmath.py:21
↓ 18 callers
Method
start
(self)
example/pybullet_api.py:60
↓ 17 callers
Method
fix_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 callers
Method
get_root_link
! The root link name. @return The name of the root link.
optas/models.py:622
↓ 15 callers
Method
interpolate
! 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 callers
Method
inv
! Quaternion inverse. @return Inverse quaternion.
optas/spatialmath.py:321
↓ 15 callers
Function
skew
! 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 callers
Method
_assert_correct_type
(value, correct_type=(optas.SX, optas.DM))
tests/test_spatialmath.py:61
↓ 14 callers
Function
main
(q=None)
tests/tester_robot_model.py:27
↓ 13 callers
Method
add_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 callers
Method
check_items
(self, items_label)
tests/test_models.py:264
↓ 13 callers
Method
enforce_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 callers
Method
integrate_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 callers
Function
load_main_function
(filename)
tests/test_examples.py:22
↓ 13 callers
Method
reset_initial_seed
! Reset initial seed for the optimization problem. @param x0 The initial seed.
optas/solver.py:103
↓ 12 callers
Function
I3
! 3-by-3 identity matrix. @return Identity matrix of order 3.
optas/spatialmath.py:73
↓ 12 callers
Method
cmd
(self, q)
example/pybullet_api.py:145
↓ 12 callers
Function
fun_known
(x, p)
tests/test_optimization.py:95
↓ 12 callers
Method
get_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 callers
Method
_random_quaternion
(self)
tests/test_spatialmath.py:385
↓ 11 callers
Method
add_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 callers
Method
get_urdf
(self)
optas/models.py:323
↓ 10 callers
Function
a_known
(x, p)
tests/test_optimization.py:185
↓ 10 callers
Method
f
! Internal method.
optas/solver.py:716
↓ 10 callers
Method
get_joint_axis
! Get the axis of a joint. @param The joint of interest. @return The normalized joint axis.
optas/models.py:653
↓ 10 callers
Function
k_known
(x, p)
tests/test_optimization.py:182
↓ 10 callers
Function
random_vector
(lo=-1, hi=1, n=3)
tests/test_optas_utils.py:11
↓ 10 callers
Function
rpy2r
! 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 callers
Method
_optas_result
(T)
tests/test_spatialmath.py:314
↓ 9 callers
Method
close
(self)
example/pybullet_api.py:66
↓ 9 callers
Method
dict2vec
! Vectorize dictionary with same layout as container. @param d Dictionary containing values to be vectorized. @return Vectorized form
optas/sx_container.py:113
↓ 9 callers
Method
get_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 callers
Method
get_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 callers
Function
rt2tr
! 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 callers
Method
stop
(self)
example/pybullet_api.py:63
↓ 8 callers
Method
_x
! Return the decision variables as a casadi.SX vector. @return Symbolic decision variables.
optas/builder.py:206
↓ 8 callers
Method
get_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 callers
Method
get_model
! Return the model with given name. @param name Name of the model. @return A task or robot model.
optas/builder.py:116
↓ 8 callers
Method
initial_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 callers
Method
split
! Split the quaternion into its xyzw parts. @return The xyzw parts of the quaternion.
optas/spatialmath.py:291
↓ 8 callers
Method
state_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 callers
Method
__init__
! Initializer for the Optimization class. @param decision_variables SXContainer containing decision variables. @param parameters SXCo
optas/optimization.py:60
↓ 7 callers
Method
get_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 callers
Method
get_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 callers
Method
line
! 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 callers
Method
q
(self)
example/pybullet_api.py:164
↓ 7 callers
Method
set_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 callers
Method
show
()
example/point_mass_mpc.py:350
↓ 6 callers
Method
_symbolic_quaternion
(self)
tests/test_spatialmath.py:392
↓ 6 callers
Method
grid_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 callers
Function
random_T
()
tests/test_spatialmath.py:29
↓ 6 callers
Function
random_angle
()
tests/test_spatialmath.py:17
↓ 6 callers
Method
reset
(self, t, qc)
example/experiment2.py:54
↓ 6 callers
Method
sphere
! 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 callers
Method
state_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 callers
Method
v
! Internal method.
optas/solver.py:728
↓ 5 callers
Method
add_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 callers
Function
angvec2r
! 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 callers
Method
fromrpy
! 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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
getrpy
! Return the quaternion as Roll-Pitch-Yaw angles. @return The RPY Euler angles (in radians).
optas/spatialmath.py:384
↓ 5 callers
Function
isclose
(A: np.ndarray, B: np.ndarray)
tests/test_optas_utils.py:15
↓ 5 callers
Function
random_rotation_matrix
()
tests/test_spatialmath.py:25
↓ 5 callers
Method
solve
! Solve the optimization problem. @return A dictionary containing the solution.
optas/solver.py:126
↓ 5 callers
Function
transl
! SE(3) translational homogeneous transform. @param T Homogeneous transformation matrix. @return Translation part of the homogeneous transfor
optas/spatialmath.py:258
↓ 5 callers
Function
v_known
(x, p)
tests/test_optimization.py:192
↓ 4 callers
Function
derive_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 callers
Method
did_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 callers
Function
figure_eight
(t)
example/experiment2.py:45
↓ 4 callers
Method
fromangvec
! 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 callers
Method
fromvec
! 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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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 callers
Method
get_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