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
↓ 4 callers
Method
get_robot_states_and_parameters
! Get the vector of states and parameters for a given model. Note that method only applies to to RobotModel. To be replaced by get_mo
optas/builder.py:178
↓ 4 callers
Method
get_velocity_joint_limit
! Return the velocity limit for a given joint. @param joint The joint instance from the URDF. @return The velocity limit, when undefi
optas/models.py:458
↓ 4 callers
Method
has_discrete_variables
! True if any of the variables in container are discrete, False otherwise. @return Boolean indicating if the SXContainer instance contains di
optas/sx_container.py:65
↓ 4 callers
Method
reset
(self, base_position, base_orientation=[0, 0, 0, 1])
example/pybullet_api.py:119
↓ 4 callers
Method
robot
! Draw a robot. @param robot_model The robot model defining the robot kinematics and visuals. @param q Joint configuration to draw ro
optas/visualize.py:888
↓ 4 callers
Method
robot_traj
! Draw a robot through a trajectory. @param robot_model The robot model defining the robot kinematics and visuals. @param Q Joint con
optas/visualize.py:1059
↓ 4 callers
Function
rotz
! SO(3) rotation about Z axis. @param theta Angle of rotation (radians). @return A 3-by-3 rotation matrix.
optas/spatialmath.py:146
↓ 4 callers
Method
set_tf
! Sets a transform to a vtk Actor. @param actor A vtk actor object. @param position The position of the transformation. @para
optas/visualize.py:175
↓ 4 callers
Method
setup_optimization
(constraint=False)
tests/test_solver.py:38
↓ 4 callers
Method
solve_and_check_solution
(solver, solver_name="")
tests/test_solver.py:45
↓ 4 callers
Method
specify_linear_constraints
! Setup the constraints k(x, p) = M(p).x + c(p) >= 0, and a(x, p) = A(p).x + b(p) == 0. @param lin_ineq_constraints SXContainer containing th
optas/optimization.py:225
↓ 4 callers
Method
specify_v
! Specify the vertical constraints vector v. This is only called for optimization problems that have constraints. @param ineq List of CasADi
optas/optimization.py:292
↓ 3 callers
Method
__init__
(self, base_position=[0.0] * 3)
example/pybullet_api.py:169
↓ 3 callers
Method
__init__
(self)
example/experiment2.py:50
↓ 3 callers
Method
__init__
! Initializer for the Manger class. @param config_filename Filename for a YAML configuration file. When None is passed, it is assumed there i
optas/templates.py:13
↓ 3 callers
Method
__init__
! The Model base class initializer. @param name The name of the model. @param dim Model dimension (for robots this is ndof).
optas/models.py:84
↓ 3 callers
Method
_is_linear_in_x
! Returns true DM(1) if y is a linear function of the decision variables, false DM(0) otherwise. @param y Symbolic function of interest.
optas/builder.py:220
↓ 3 callers
Method
_optas_result
(theta, v)
tests/test_spatialmath.py:102
↓ 3 callers
Method
_optas_result
(v)
tests/test_spatialmath.py:357
↓ 3 callers
Method
_random_quat
(self)
tests/test_spatialmath.py:382
↓ 3 callers
Method
check_num
(self, label, expected_nums)
tests/test_models.py:312
↓ 3 callers
Method
extract_optimized_dimensions
! Return the elements that correspond to the model optimized dimensions. @param values The values to extract elements from. @return A
optas/models.py:406
↓ 3 callers
Function
g_known
(x, p)
tests/test_optimization.py:278
↓ 3 callers
Method
get_global_link_transform_function
! Get the function which computes the link transform in the global frame. @param link Name of the end-effector link. @param n Number
optas/models.py:870
↓ 3 callers
Method
get_link_angular_analytical_jacobian
! Compute the angular part of the analytical Jacobian matrix in a given base frame. @param link Name of the end-effector link. @param
optas/models.py:1592
↓ 3 callers
Method
get_link_position_function
! Get the function that computes the position of a link in a given base frame. @param link Name of the end-effector link. @param base
optas/models.py:962
↓ 3 callers
Method
get_link_visual_origin
! Get the link position and orientation for the link visual. @param link The link of interest. @return The position and orientation.
optas/models.py:629
↓ 3 callers
Method
get_model_index
! Return the index of the model in the list of models. @param name Name of the model. @return Index of the model in the list of model
optas/builder.py:108
↓ 3 callers
Method
get_model_parameters
! Get the array of parameters for a given model. @param name Name of the model. @param time_deriv The time-deriviative required (i.e.
optas/builder.py:151
↓ 3 callers
Method
getrotm
@ return rot matrix
optas/spatialmath.py:407
↓ 3 callers
Function
h_known
(x, p)
tests/test_optimization.py:281
↓ 3 callers
Method
in_limit
! Check if array is within model limits. @param x The array containing values to be checked. @param time_deriv The time-deriviative r
optas/models.py:178
↓ 3 callers
Method
is_cost_quadratic
! True DM(1) when cost function is quadratic in the decision variables, False DM(0) otherwise. @return Truth value if the cost function is qu
optas/builder.py:235
↓ 3 callers
Method
link
! Draw a link. @param T Homogeneous transformation matrix. @param axis_scale The axis length. @param axis_linewidth Width of
optas/visualize.py:597
↓ 3 callers
Function
r2t
! Convert rotation matrix to a homogeneous transform. @param R A 3-by-3 rotation matrix. @return Homogenous transformation with given rotatio
optas/spatialmath.py:103
↓ 3 callers
Method
reset
(self, qcl, qcr)
example/dual_arm.py:148
↓ 3 callers
Method
rnea
! Compute inverse dynamics with RNEA. NOTE, currently this method only supports revolute/continuous joints. The first joint should be
optas/models.py:1732
↓ 3 callers
Function
rotx
! SO(3) rotation about X axis. @param theta Angle of rotation (radians). @return A 3-by-3 rotation matrix.
optas/spatialmath.py:116
↓ 3 callers
Function
roty
! SO(3) rotation about Y axis. @param theta Angle of rotation (radians). @return A 3-by-3 rotation matrix.
optas/spatialmath.py:131
↓ 3 callers
Method
specify_quadratic_cost
! Specify the terms P and q of a quadratic cost function.
optas/optimization.py:219
↓ 3 callers
Method
sphere_traj
! Draw a sphere trajectory. @param position_traj The position trajectory for the spheres. @param radius The radius of the spheres.
optas/visualize.py:334
↓ 3 callers
Method
state_optimized_name
! Return the sate optimized name. @param time_deriv The time-deriviative required (i.e. position is 0, velocity is 1, etc.) @return T
optas/models.py:152
↓ 3 callers
Function
t2r
! Rotational submatrix. @param Homogenous transformation matrix. @return A 3-by-3 rotation matrix.
optas/spatialmath.py:236
↓ 3 callers
Function
unit
! Unitize a vector. @param v A vector of order 3. @return A vector of order 3 with unit magnitude that is parralel to input vector.
optas/spatialmath.py:268
↓ 3 callers
Method
vec2dict
! Convert vector with same layout as SXContainer to dict. @param vec Vector assumed to be arranged with same layout as SXContainer instance.
optas/sx_container.py:98
↓ 2 callers
Function
I4
! 4-by-4 identity matrix. @return Identity matrix of order 4.
optas/spatialmath.py:81
↓ 2 callers
Method
_cost
! Returns the cost function. @return The symbolic cost function.
optas/builder.py:228
↓ 2 callers
Method
_lib_result
(theta, dim)
tests/test_spatialmath.py:157
↓ 2 callers
Method
_optas_result
(rpy, opt)
tests/test_spatialmath.py:196
↓ 2 callers
Method
_reset_parameters
! Internal method to reset parameters.
optas/solver.py:453
↓ 2 callers
Method
_reset_parameters
! Internal method to reset parameters.
optas/solver.py:539
↓ 2 callers
Method
_run
(self, ik)
example/experiment2.py:210
↓ 2 callers
Method
_run
(self, label, ik)
example/experiment1.py:231
↓ 2 callers
Method
_setup_kuka_model
(self, name, base_position)
example/dual_arm.py:130
↓ 2 callers
Method
add_base_frame
! Add new base frame, note this changes the root link. @param base_link The name for the new root link. @param xyz The position of th
optas/models.py:552
↓ 2 callers
Method
compute_target_velocity
(self, qc, pg)
example/TrackingBall.py:101
↓ 2 callers
Method
compute_target_velocity
(self, qc, pg)
example/pushing.py:295
↓ 2 callers
Method
cvt_orientation_to_rotation_matrix
! Convert an orientation input to a rotation matrix. @param orientation Either a quaternion or Euler angles. @param euler_seq When or
optas/visualize.py:152
↓ 2 callers
Method
cylinder_urdf
! Draw a cylinder (with main axis along the z-axis, i.e. similar to URDF). @param radius The cylinder radius. @param height The heigh
optas/visualize.py:503
↓ 2 callers
Method
discrete
! Returns a list containing discrete classification of each variable. @return List of booleans for each variable, the boolean indicates wheth
optas/sx_container.py:72
↓ 2 callers
Method
extract_parameter_dimensions
! Return the elements that correspond to the model dimensions. @param values The values to extract elements from. @return A sub-array
optas/models.py:398
↓ 2 callers
Method
get_global_link_angular_analytical_jacobian
! Compute the angular part of the analytical Jacobian matrix in the global frame. @param link Name of the end-effector link. @param q
optas/models.py:1519
↓ 2 callers
Method
get_global_link_angular_geometric_jacobian
! Compute the angular part of the geometric jacobian in the global frame. @param link Name of the end-effector link. @param q Joint p
optas/models.py:1483
↓ 2 callers
Method
get_global_link_angular_geometric_jacobian_function
! Get the function that computes the angular part of the geometric jacobian in the global frame. @param link Name of the end-effector link.
optas/models.py:1496
↓ 2 callers
Method
get_global_link_linear_jacobian_function
! Get the function that computes the linear part of the geometric jacobian in the global frame. @param link Name of the end-effector link.
optas/models.py:1425
↓ 2 callers
Method
get_link_axis
! Compute the link axis, this is a direction vector defined in the end-effector frame (e.g. the x/y/z link axis). @param link Name of the end
optas/models.py:1639
↓ 2 callers
Method
get_link_linear_jacobian
! Get the linear part of the geometric jacobian in a given base frame. @param link Name of the end-effector link. @param q Joint posi
optas/models.py:1448
↓ 2 callers
Method
get_link_quaternion
! Get the quaternion defined in a given base frame. @param link Name of the end-effector link. @param q Joint position array.
optas/models.py:1110
↓ 2 callers
Method
get_link_rpy
! Get the the Roll-Pitch-Yaw angles defined in a given base frame. @param link Name of the end-effector link. @param q Joint position
optas/models.py:1169
↓ 2 callers
Method
get_model_names
! Return the names of each model. @return List of model names.
optas/builder.py:101
↓ 2 callers
Method
get_random_pose_in_global_link
Random end-effector pose within robot limits. @param link_name Name of the end-effector link. @return Random homogeneous transformati
optas/models.py:720
↓ 2 callers
Method
get_target
! Return the target from the solution. For example, the target joint states. This is an abstract method. @return The part of the solution tha
optas/templates.py:100
↓ 2 callers
Method
get_target_dq
(self)
example/experiment1.py:70
↓ 2 callers
Method
get_urdf_dirname
(self)
optas/models.py:326
↓ 2 callers
Method
handle
(fout)
optas/models.py:804
↓ 2 callers
Function
isclose
(A: np.ndarray, B: np.ndarray)
tests/test_solver.py:10
↓ 2 callers
Function
main
(gui=True)
example/TrackingBall.py:107
↓ 2 callers
Method
method
(self, link, q)
tests/test_models.py:38
↓ 2 callers
Function
normalize
(v)
tests/test_spatialmath.py:36
↓ 2 callers
Method
plot_position_path
(self, ax, fmt="-k", **kwargs)
example/experiment1.py:176
↓ 2 callers
Function
random_number
(lo=-1, hi=1)
tests/test_spatialmath.py:13
↓ 2 callers
Method
reset
(self, qc, qd_init=None)
example/experiment1.py:56
↓ 2 callers
Method
reset
(self, qc, pg, og, qn)
example/simple_joint_space_planner.py:77
↓ 2 callers
Method
reset
(self, qc)
example/figure_eight_plan.py:118
↓ 2 callers
Method
reset
! Reset the optimization problem. This is an abstract method.
optas/templates.py:95
↓ 2 callers
Method
reset_pb
(self)
example/experiment1.py:223
↓ 2 callers
Function
rot2
(angle)
example/pushing.py:21
↓ 2 callers
Method
save
(self, filename)
example/experiment1.py:159
↓ 2 callers
Method
set_models
! Specify the models in the optimization problem. @param models A list of models (i.e. instance of a sub-class of Model).
optas/optimization.py:212
↓ 2 callers
Method
set_transformation
! Sets a transformation to a vtk Actor. @param actor A vtk actor object. @param tf A homogenous transformation matrix.
optas/visualize.py:198
↓ 2 callers
Method
setup_problem
(self, *args)
example/experiment1.py:36
↓ 2 callers
Method
setup_solver
(self)
example/experiment1.py:49
↓ 2 callers
Method
specify_nonlinear_constraints
! Setup the constraints g(x, p) >= 0, and h(x, p) == 0. @param ineq_constraints SXContainer containing the inequality constraints. @p
optas/optimization.py:262
↓ 2 callers
Method
start_adding_actors
(self)
optas/visualize.py:31
↓ 2 callers
Method
stop_adding_actors
(self)
optas/visualize.py:34
↓ 2 callers
Method
text
! Draw text. @param msg The text to draw. @param position The position to draw the text in the global frame. @param scale The
optas/visualize.py:554
↓ 2 callers
Method
variable_is_discrete
! Specify that a given variable is discrete. @param label Name for a specific item that appears in the SXContainer instance.
optas/sx_container.py:57
↓ 2 callers
Function
yaw2quat
(angle)
example/pushing.py:17
↓ 1 callers
Method
_get_desired_vel_difference
(self, xydir)
example/experiment1.py:130
↓ 1 callers
Function
_handle_arraylike_args
Helper method that applies the handle to array like arguments.
optas/spatialmath.py:30
← previous
next →
101–200 of 714, ranked by callers