Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::scene_graph::OFKTStateSolver Class Reference

An implementation of the Optimized Forward Kinematic Tree as a stat solver. More...

#include <ofkt_state_solver.h>

Inheritance diagram for tesseract::scene_graph::OFKTStateSolver:

Public Types

using Ptr = std::shared_ptr<OFKTStateSolver>
using ConstPtr = std::shared_ptr<const OFKTStateSolver>
using UPtr = std::unique_ptr<OFKTStateSolver>
using ConstUPtr = std::unique_ptr<const OFKTStateSolver>
Public Types inherited from tesseract::scene_graph::MutableStateSolver
using Ptr = std::shared_ptr<MutableStateSolver>
using ConstPtr = std::shared_ptr<const MutableStateSolver>
using UPtr = std::unique_ptr<MutableStateSolver>
using ConstUPtr = std::unique_ptr<const MutableStateSolver>
Public Types inherited from tesseract::scene_graph::StateSolver
using Ptr = std::shared_ptr<StateSolver>
using ConstPtr = std::shared_ptr<const StateSolver>
using UPtr = std::unique_ptr<StateSolver>
using ConstUPtr = std::unique_ptr<const StateSolver>

Public Member Functions

 OFKTStateSolver (const tesseract::scene_graph::SceneGraph &scene_graph, const std::string &prefix="")
 OFKTStateSolver (const tesseract::common::LinkId &root_link)
 OFKTStateSolver (const OFKTStateSolver &other)
OFKTStateSolver & operator= (const OFKTStateSolver &other)
 OFKTStateSolver (OFKTStateSolver &&)=delete
OFKTStateSolver & operator= (OFKTStateSolver &&)=delete
void setRevision (int revision) override final
 Set the state solver revision number.
int getRevision () const override final
 Get the state solver revision number.
void setState (const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) override final
 Set the current state of the solver.
void setState (const SceneState::JointValues &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) override final
 Set the current state using a JointId-keyed map.
void setState (const std::vector< tesseract::common::JointId > &joint_ids, const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) override final
 Set the current state using a vector of JointIds.
void setState (const tesseract::common::JointIdTransformMap &floating_joint_values) override final
 Set the current state of the floating joint values.
SceneState getState (const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) const override final
 Get the state of the solver given the joint values.
SceneState getState (const SceneState::JointValues &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) const override final
 Get the state using a JointId-keyed map.
SceneState getState (const std::vector< tesseract::common::JointId > &joint_ids, const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values={}) const override final
 Get the state using a vector of JointIds.
SceneState getState (const tesseract::common::JointIdTransformMap &floating_joint_values) const override final
 Get the state given floating joint values.
void getLinkTransforms (tesseract::common::LinkIdTransformMap &link_transforms, const std::vector< tesseract::common::JointId > &joint_ids, const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::JointIdTransformMap &floating_joint_values) const override final
 Get the link transforms of the scene for a given set or subset of joint values.
void getLinkTransforms (tesseract::common::LinkIdTransformMap &link_transforms, const std::vector< tesseract::common::JointId > &joint_ids, const Eigen::Ref< const Eigen::VectorXd > &joint_values) const override final
 Get link transforms without applying floating joint values.
SceneState getState () const override final
 Get the current state of the scene.
SceneState getRandomState () const override final
 Get the random state of the environment.
Eigen::MatrixXd getJacobian (const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::LinkId &link_id, const tesseract::common::JointIdTransformMap &floating_joint_values={}) const override final
 Get the jacobian for a link identified by LinkId.
Eigen::MatrixXd getJacobian (const std::vector< tesseract::common::JointId > &joint_ids, const Eigen::Ref< const Eigen::VectorXd > &joint_values, const tesseract::common::LinkId &link_id, const tesseract::common::JointIdTransformMap &floating_joint_values={}) const override final
 Get the jacobian for a given set or subset of joint IDs.
std::vector< tesseract::common::JointId > getJointIds () const override final
 Get the vector of joint IDs.
std::vector< tesseract::common::JointId > getFloatingJointIds () const override final
 Get the vector of floating joint IDs.
std::vector< tesseract::common::JointId > getActiveJointIds () const override final
 Get the vector of active joint IDs which align with the limits.
tesseract::common::LinkId getBaseLinkId () const override final
 Get the base link ID.
std::vector< tesseract::common::LinkId > getLinkIds () const override final
 Get the vector of link IDs.
std::vector< tesseract::common::LinkId > getActiveLinkIds () const override final
 Get the vector of active link IDs.
std::vector< tesseract::common::LinkId > getStaticLinkIds () const override final
 Get a vector of static link IDs.
bool isActiveLinkId (const tesseract::common::LinkId &link_id) const override final
 Check if link is an active link.
bool hasLinkId (const tesseract::common::LinkId &link_id) const override final
 Check if link id exists.
tesseract::common::VectorIsometry3d getLinkTransforms () const override final
 Get all of the links transforms.
Eigen::Isometry3d getLinkTransform (const tesseract::common::LinkId &link_id) const override final
 Get the transform corresponding to the link.
Eigen::Isometry3d getRelativeLinkTransform (const tesseract::common::LinkId &from_link_id, const tesseract::common::LinkId &to_link_id) const override final
 Get transform between two links using the current state.
tesseract::common::KinematicLimits getLimits () const override final
 Getter for kinematic limits.
bool addLink (const Link &link, const Joint &joint) override final
 Adds a link/joint to the solver.
bool moveLink (const Joint &joint) override final
 Move a link.
bool removeLink (const tesseract::common::LinkId &link_id) override final
 Removes a link from the graph.
bool replaceJoint (const Joint &joint) override final
 Replace and existing joint with the provided one.
bool removeJoint (const tesseract::common::JointId &joint_id) override final
 Removes a joint from the graph.
bool moveJoint (const tesseract::common::JointId &joint_id, const tesseract::common::LinkId &parent_link_id) override final
 Move joint to new parent link.
bool changeJointOrigin (const tesseract::common::JointId &joint_id, const Eigen::Isometry3d &new_origin) override final
 Changes the "origin" transform of the joint and recomputes the associated edge.
bool changeJointPositionLimits (const tesseract::common::JointId &joint_id, double lower, double upper) override final
 Changes the position limits associated with a joint.
bool changeJointVelocityLimits (const tesseract::common::JointId &joint_id, double limit) override final
 Changes the velocity limits associated with a joint.
bool changeJointAccelerationLimits (const tesseract::common::JointId &joint_id, double limit) override final
 Changes the acceleration limits associated with a joint.
bool changeJointJerkLimits (const tesseract::common::JointId &joint_id, double limit) override final
 Changes the jerk limits associated with a joint.
bool insertSceneGraph (const SceneGraph &scene_graph, const Joint &joint, const std::string &prefix="") override final
 Merge a scene into the current solver.
StateSolver::UPtr clone () const override final
 This should clone the object so it may be used in a multi threaded application where each thread would clone the solver.
Public Member Functions inherited from tesseract::scene_graph::MutableStateSolver
 MutableStateSolver (const MutableStateSolver &)=default
MutableStateSolver & operator= (const MutableStateSolver &)=default
 MutableStateSolver (MutableStateSolver &&)=default
MutableStateSolver & operator= (MutableStateSolver &&)=default
Public Member Functions inherited from tesseract::scene_graph::StateSolver
 StateSolver (const StateSolver &)=default
StateSolver & operator= (const StateSolver &)=default
 StateSolver (StateSolver &&)=default
StateSolver & operator= (StateSolver &&)=default

Friends

struct ofkt_builder

Detailed Description

An implementation of the Optimized Forward Kinematic Tree as a stat solver.

Starke, S., Hendrich, N., & Zhang, J. (2018). A Forward Kinematics Data Structure for Efficient Evolutionary Inverse Kinematics. In Computational Kinematics (pp. 560-568). Springer, Cham.

Member Function Documentation

◆ setRevision()

void tesseract::scene_graph::OFKTStateSolver::setRevision ( int revision)
finaloverridevirtual

Set the state solver revision number.

Parameters
revisionThe revision number to assign

Implements tesseract::scene_graph::MutableStateSolver.

◆ getRevision()

int tesseract::scene_graph::OFKTStateSolver::getRevision ( ) const
finaloverridevirtual

Get the state solver revision number.

Returns
revision number

Implements tesseract::scene_graph::MutableStateSolver.

◆ setState() [1/4]

void tesseract::scene_graph::OFKTStateSolver::setState ( const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} )
finaloverridevirtual

Set the current state of the solver.

This must be the same size and order as what is returned by getJointIds

Parameters
joint_valuesThe joint values

Implements tesseract::scene_graph::StateSolver.

◆ setState() [2/4]

void tesseract::scene_graph::OFKTStateSolver::setState ( const SceneState::JointValues & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} )
finaloverridevirtual

Set the current state using a JointId-keyed map.

Implements tesseract::scene_graph::StateSolver.

◆ setState() [3/4]

void tesseract::scene_graph::OFKTStateSolver::setState ( const std::vector< tesseract::common::JointId > & joint_ids,
const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} )
finaloverridevirtual

Set the current state using a vector of JointIds.

Implements tesseract::scene_graph::StateSolver.

◆ setState() [4/4]

void tesseract::scene_graph::OFKTStateSolver::setState ( const tesseract::common::JointIdTransformMap & floating_joint_values)
finaloverridevirtual

Set the current state of the floating joint values.

Parameters
floating_joint_valuesThe floating joint values to set

Implements tesseract::scene_graph::StateSolver.

◆ getState() [1/5]

SceneState tesseract::scene_graph::OFKTStateSolver::getState ( const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} ) const
finaloverridevirtual

Get the state of the solver given the joint values.

This must be the same size and order as what is returned by getJointIds

Parameters
joint_valuesThe joint values
floating_joint_valuesThe floating joint origin transform

Implements tesseract::scene_graph::StateSolver.

◆ getState() [2/5]

SceneState tesseract::scene_graph::OFKTStateSolver::getState ( const SceneState::JointValues & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} ) const
finaloverridevirtual

Get the state using a JointId-keyed map.

This does not change the internal state of the solver.

Implements tesseract::scene_graph::StateSolver.

◆ getState() [3/5]

SceneState tesseract::scene_graph::OFKTStateSolver::getState ( const std::vector< tesseract::common::JointId > & joint_ids,
const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} ) const
finaloverridevirtual

Get the state using a vector of JointIds.

Implements tesseract::scene_graph::StateSolver.

◆ getState() [4/5]

SceneState tesseract::scene_graph::OFKTStateSolver::getState ( const tesseract::common::JointIdTransformMap & floating_joint_values) const
finaloverridevirtual

Get the state given floating joint values.

Parameters
floating_joint_valuesThe floating joint values to leverage
Returns
A the state of the environment

Implements tesseract::scene_graph::StateSolver.

◆ getLinkTransforms() [1/3]

void tesseract::scene_graph::OFKTStateSolver::getLinkTransforms ( tesseract::common::LinkIdTransformMap & link_transforms,
const std::vector< tesseract::common::JointId > & joint_ids,
const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::JointIdTransformMap & floating_joint_values ) const
finaloverridevirtual

Get the link transforms of the scene for a given set or subset of joint values.

This is provided to optimize motion planning where link_transforms are poplated multiple time

This does not change the internal state of the solver.

This overwrites the transform of every link in the solver's tree but does not clear link_transforms first; keys from a different tree persist. Reusing a scratch map without clearing is safe iff every key later read is a link of this solver.

Parameters
link_transformsThe link_transforms to populate with data.
joint_idsA list of joint IDs to change.
joint_valuesThe joint values
floating_joint_valuesThe floating joint origin transform

Implements tesseract::scene_graph::StateSolver.

◆ getLinkTransforms() [2/3]

void tesseract::scene_graph::OFKTStateSolver::getLinkTransforms ( tesseract::common::LinkIdTransformMap & link_transforms,
const std::vector< tesseract::common::JointId > & joint_ids,
const Eigen::Ref< const Eigen::VectorXd > & joint_values ) const
finaloverridevirtual

Get link transforms without applying floating joint values.

This is provided to optimize motion planning where link_transforms are poplated multiple time

This does not change the internal state of the solver.

This overwrites the transform of every link in the solver's tree but does not clear link_transforms first; keys from a different tree persist. Reusing a scratch map without clearing is safe iff every key later read is a link of this solver.

Parameters
link_transformsThe link_transforms to populate with data.
joint_idsA list of joint IDs to change.
joint_valuesThe joint values

Implements tesseract::scene_graph::StateSolver.

◆ getState() [5/5]

SceneState tesseract::scene_graph::OFKTStateSolver::getState ( ) const
finaloverridevirtual

Get the current state of the scene.

Returns
The current state

Implements tesseract::scene_graph::StateSolver.

◆ getRandomState()

SceneState tesseract::scene_graph::OFKTStateSolver::getRandomState ( ) const
finaloverridevirtual

Get the random state of the environment.

Returns
Environment state

Implements tesseract::scene_graph::StateSolver.

◆ getJacobian() [1/2]

Eigen::MatrixXd tesseract::scene_graph::OFKTStateSolver::getJacobian ( const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::LinkId & link_id,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} ) const
finaloverridevirtual

Get the jacobian for a link identified by LinkId.

This must be the same size and order as what is returned by getJointIds

Parameters
joint_valuesThe joint values
link_idThe link ID to calculate the jacobian for
floating_joint_valuesThe floating joint origin transform

Implements tesseract::scene_graph::StateSolver.

◆ getJacobian() [2/2]

Eigen::MatrixXd tesseract::scene_graph::OFKTStateSolver::getJacobian ( const std::vector< tesseract::common::JointId > & joint_ids,
const Eigen::Ref< const Eigen::VectorXd > & joint_values,
const tesseract::common::LinkId & link_id,
const tesseract::common::JointIdTransformMap & floating_joint_values = {} ) const
finaloverridevirtual

Get the jacobian for a given set or subset of joint IDs.

This does not change the internal state of the solver.

Parameters
joint_idsA list of joint IDs to change.
joint_valuesThe joint values
link_idThe link ID to calculate the jacobian for
floating_joint_valuesThe floating joint origin transform

Implements tesseract::scene_graph::StateSolver.

◆ getJointIds()

std::vector< JointId > tesseract::scene_graph::OFKTStateSolver::getJointIds ( ) const
finaloverridevirtual

Get the vector of joint IDs.

Implements tesseract::scene_graph::StateSolver.

◆ getFloatingJointIds()

std::vector< JointId > tesseract::scene_graph::OFKTStateSolver::getFloatingJointIds ( ) const
finaloverridevirtual

Get the vector of floating joint IDs.

Implements tesseract::scene_graph::StateSolver.

◆ getActiveJointIds()

std::vector< JointId > tesseract::scene_graph::OFKTStateSolver::getActiveJointIds ( ) const
finaloverridevirtual

Get the vector of active joint IDs which align with the limits.

Implements tesseract::scene_graph::StateSolver.

◆ getBaseLinkId()

LinkId tesseract::scene_graph::OFKTStateSolver::getBaseLinkId ( ) const
finaloverridevirtual

Get the base link ID.

Implements tesseract::scene_graph::StateSolver.

◆ getLinkIds()

std::vector< LinkId > tesseract::scene_graph::OFKTStateSolver::getLinkIds ( ) const
finaloverridevirtual

Get the vector of link IDs.

Implements tesseract::scene_graph::StateSolver.

◆ getActiveLinkIds()

std::vector< LinkId > tesseract::scene_graph::OFKTStateSolver::getActiveLinkIds ( ) const
finaloverridevirtual

Get the vector of active link IDs.

Implements tesseract::scene_graph::StateSolver.

◆ getStaticLinkIds()

std::vector< LinkId > tesseract::scene_graph::OFKTStateSolver::getStaticLinkIds ( ) const
finaloverridevirtual

Get a vector of static link IDs.

Implements tesseract::scene_graph::StateSolver.

◆ isActiveLinkId()

bool tesseract::scene_graph::OFKTStateSolver::isActiveLinkId ( const tesseract::common::LinkId & link_id) const
finaloverridevirtual

Check if link is an active link.

Parameters
link_idThe link id to check
Returns
True if active, otherwise false

Implements tesseract::scene_graph::StateSolver.

◆ hasLinkId()

bool tesseract::scene_graph::OFKTStateSolver::hasLinkId ( const tesseract::common::LinkId & link_id) const
finaloverridevirtual

Check if link id exists.

Parameters
link_idThe link id to check for
Returns
True if it exists, otherwise false

Implements tesseract::scene_graph::StateSolver.

◆ getLinkTransforms() [3/3]

tesseract::common::VectorIsometry3d tesseract::scene_graph::OFKTStateSolver::getLinkTransforms ( ) const
finaloverridevirtual

Get all of the links transforms.

Order should be the same as getLinkIds()

Returns
Get a vector of transforms for all links.

Implements tesseract::scene_graph::StateSolver.

◆ getLinkTransform()

Eigen::Isometry3d tesseract::scene_graph::OFKTStateSolver::getLinkTransform ( const tesseract::common::LinkId & link_id) const
finaloverridevirtual

Get the transform corresponding to the link.

Returns
Transform and is identity when no transform is available.

Implements tesseract::scene_graph::StateSolver.

◆ getRelativeLinkTransform()

Eigen::Isometry3d tesseract::scene_graph::OFKTStateSolver::getRelativeLinkTransform ( const tesseract::common::LinkId & from_link_id,
const tesseract::common::LinkId & to_link_id ) const
finaloverridevirtual

Get transform between two links using the current state.

Parameters
from_link_idThe link id the transform should be relative to
to_link_idThe link id to get transform
Returns
The relative transform = inv(Transform(from_link_id)) * Transform(to_link_id)

Implements tesseract::scene_graph::StateSolver.

◆ getLimits()

tesseract::common::KinematicLimits tesseract::scene_graph::OFKTStateSolver::getLimits ( ) const
finaloverridevirtual

Getter for kinematic limits.

Returns
The kinematic limits

Implements tesseract::scene_graph::StateSolver.

◆ addLink()

bool tesseract::scene_graph::OFKTStateSolver::addLink ( const Link & link,
const Joint & joint )
finaloverridevirtual

Adds a link/joint to the solver.

Parameters
linkThe link to be added to the graph
jointThe associated joint to be added to the graph
Returns
Return False if a link with the same name allready exists, otherwise true

Implements tesseract::scene_graph::MutableStateSolver.

◆ moveLink()

bool tesseract::scene_graph::OFKTStateSolver::moveLink ( const Joint & joint)
finaloverridevirtual

Move a link.

Parameters
jointThe associated joint that defines the move
Returns
Return False if link does not exist or if joint name already exists, otherwise true

Implements tesseract::scene_graph::MutableStateSolver.

◆ removeLink()

bool tesseract::scene_graph::OFKTStateSolver::removeLink ( const tesseract::common::LinkId & link_id)
finaloverridevirtual

Removes a link from the graph.

Note: this will remove all inbound and outbound edges

Parameters
link_idId of the link to be removed
Returns
Return False if a link does not exists, otherwise true

Implements tesseract::scene_graph::MutableStateSolver.

◆ replaceJoint()

bool tesseract::scene_graph::OFKTStateSolver::replaceJoint ( const Joint & joint)
finaloverridevirtual

Replace and existing joint with the provided one.

Parameters
jointThe replacement joint
Returns
Return False if a joint does not exists, otherwise true

Implements tesseract::scene_graph::MutableStateSolver.

◆ removeJoint()

bool tesseract::scene_graph::OFKTStateSolver::removeJoint ( const tesseract::common::JointId & joint_id)
finaloverridevirtual

Removes a joint from the graph.

Parameters
joint_idId of the joint to be removed
Returns
Return False if a joint does not exists, otherwise true

Implements tesseract::scene_graph::MutableStateSolver.

◆ moveJoint()

bool tesseract::scene_graph::OFKTStateSolver::moveJoint ( const tesseract::common::JointId & joint_id,
const tesseract::common::LinkId & parent_link_id )
finaloverridevirtual

Move joint to new parent link.

Parameters
joint_idId of the joint to move
parent_link_idId of parent link to move to
Returns
Returns true if successful, otherwise false.

Implements tesseract::scene_graph::MutableStateSolver.

◆ changeJointOrigin()

bool tesseract::scene_graph::OFKTStateSolver::changeJointOrigin ( const tesseract::common::JointId & joint_id,
const Eigen::Isometry3d & new_origin )
finaloverridevirtual

Changes the "origin" transform of the joint and recomputes the associated edge.

Parameters
joint_idId of the joint to be changed
new_originThe new transform associated with the joint
Returns
True if successful.

Implements tesseract::scene_graph::MutableStateSolver.

◆ changeJointPositionLimits()

bool tesseract::scene_graph::OFKTStateSolver::changeJointPositionLimits ( const tesseract::common::JointId & joint_id,
double lower,
double upper )
finaloverridevirtual

Changes the position limits associated with a joint.

Parameters
joint_idId of the joint to be updated
limitsNew position limits to be set as the joint limits @returnTrue if successful.

Implements tesseract::scene_graph::MutableStateSolver.

◆ changeJointVelocityLimits()

bool tesseract::scene_graph::OFKTStateSolver::changeJointVelocityLimits ( const tesseract::common::JointId & joint_id,
double limit )
finaloverridevirtual

Changes the velocity limits associated with a joint.

Parameters
joint_idId of the joint to be updated
limitsNew velocity limits to be set as the joint limits
Returns

Implements tesseract::scene_graph::MutableStateSolver.

◆ changeJointAccelerationLimits()

bool tesseract::scene_graph::OFKTStateSolver::changeJointAccelerationLimits ( const tesseract::common::JointId & joint_id,
double limit )
finaloverridevirtual

Changes the acceleration limits associated with a joint.

Parameters
joint_idId of the joint to be updated
limitsNew acceleration limits to be set as the joint limits
Returns

Implements tesseract::scene_graph::MutableStateSolver.

◆ changeJointJerkLimits()

bool tesseract::scene_graph::OFKTStateSolver::changeJointJerkLimits ( const tesseract::common::JointId & joint_id,
double limit )
finaloverridevirtual

Changes the jerk limits associated with a joint.

Parameters
joint_idId of the joint to be updated
limitsNew jerk limits to be set as the joint limits
Returns

Implements tesseract::scene_graph::MutableStateSolver.

◆ insertSceneGraph()

bool tesseract::scene_graph::OFKTStateSolver::insertSceneGraph ( const SceneGraph & scene_graph,
const Joint & joint,
const std::string & prefix = "" )
finaloverridevirtual

Merge a scene into the current solver.

Parameters
scene_graphConst ref to the graph to be merged
jointThe joint that connects current scene with the inserted scene
prefixstring Will be prepended to every link and joint of the merged scene
Returns
Return False if any link or joint name collides with current solver, otherwise True The prefix argument is meant to allow adding multiple copies of the same subgraph with different names

Implements tesseract::scene_graph::MutableStateSolver.

◆ clone()

StateSolver::UPtr tesseract::scene_graph::OFKTStateSolver::clone ( ) const
finaloverridevirtual

This should clone the object so it may be used in a multi threaded application where each thread would clone the solver.

Returns
A clone of the object.

Implements tesseract::scene_graph::StateSolver.