#include <chomp_optimizer.h>
Definition at line 54 of file chomp_optimizer.h.
chomp::ChompOptimizer::ChompOptimizer | ( | ChompTrajectory * | trajectory, |
planning_models::KinematicModel * | robot_model, | ||
const std::string & | planning_group, | ||
const ChompParameters * | parameters, | ||
const ros::Publisher & | vis_marker_array_publisher, | ||
const ros::Publisher & | vis_marker_publisher, | ||
collision_proximity::CollisionProximitySpace * | collision_space | ||
) |
Definition at line 59 of file chomp_optimizer.cpp.
chomp::ChompOptimizer::~ChompOptimizer | ( | ) | [virtual] |
Definition at line 254 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::addIncrementsToTrajectory | ( | ) | [private] |
Definition at line 641 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::animateEndeffector | ( | ) | [private] |
Definition at line 1068 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::animatePath | ( | ) | [private] |
Definition at line 1058 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::calculateCollisionIncrements | ( | ) | [private] |
Definition at line 547 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::calculatePseudoInverse | ( | ) | [private] |
Definition at line 623 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::calculateSmoothnessIncrements | ( | ) | [private] |
Definition at line 537 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::calculateTotalIncrements | ( | ) | [private] |
Definition at line 630 of file chomp_optimizer.cpp.
CollisionProximitySpace::TrajectorySafety chomp::ChompOptimizer::checkCurrentIterValidity | ( | ) | [private] |
Definition at line 506 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::computeJointProperties | ( | int | trajectoryPoint | ) | [private] |
Definition at line 719 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::debugCost | ( | ) | [private] |
Definition at line 670 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::destroy | ( | ) | [inline] |
Definition at line 66 of file chomp_optimizer.h.
double chomp::ChompOptimizer::getCollisionCost | ( | ) | [private] |
Definition at line 693 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::getJacobian | ( | int | trajectoryPoint, |
Eigen::Vector3d & | collision_point_pos, | ||
std::string & | jointName, | ||
Eigen::MatrixBase< Derived > & | jacobian | ||
) | const [private] |
void chomp::ChompOptimizer::getJacobian | ( | int | trajectoryPoint, |
Vector3d & | collision_point_pos, | ||
string & | jointName, | ||
MatrixBase< Derived > & | jacobian | ||
) | const |
Definition at line 759 of file chomp_optimizer.cpp.
double chomp::ChompOptimizer::getPotential | ( | double | field_distance, |
double | radius, | ||
double | clearence | ||
) | [inline, private] |
Definition at line 72 of file chomp_optimizer.h.
void chomp::ChompOptimizer::getRandomMomentum | ( | ) | [private] |
Definition at line 1029 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::getRandomState | ( | const planning_models::KinematicState * | currentState, |
const std::string & | groupName, | ||
Eigen::VectorXd & | state_vec | ||
) | [private] |
Definition at line 986 of file chomp_optimizer.cpp.
double chomp::ChompOptimizer::getSmoothnessCost | ( | ) | [private] |
Definition at line 683 of file chomp_optimizer.cpp.
double chomp::ChompOptimizer::getTrajectoryCost | ( | ) | [private] |
Definition at line 678 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::handleJointLimits | ( | ) | [private] |
Definition at line 784 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::initialize | ( | ) | [private] |
Definition at line 69 of file chomp_optimizer.cpp.
bool chomp::ChompOptimizer::isParent | ( | const std::string & | childLink, |
const std::string & | parentLink | ||
) | const [inline, private] |
Definition at line 167 of file chomp_optimizer.h.
void chomp::ChompOptimizer::optimize | ( | ) |
Definition at line 291 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::performForwardKinematics | ( | ) | [private] |
Definition at line 866 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::perturbTrajectory | ( | ) | [private] |
Definition at line 961 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::registerParents | ( | const planning_models::KinematicModel::JointModel * | model | ) | [private] |
Definition at line 259 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::setRobotStateFromPoint | ( | ChompTrajectory & | group_trajectory, |
int | i | ||
) | [private] |
Definition at line 944 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::updateFullTrajectory | ( | ) | [private] |
Definition at line 665 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::updateMomentum | ( | ) | [private] |
Definition at line 1041 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::updatePositionFromMomentum | ( | ) | [private] |
Definition at line 1052 of file chomp_optimizer.cpp.
void chomp::ChompOptimizer::visualizeState | ( | int | index | ) | [private] |
Definition at line 1100 of file chomp_optimizer.cpp.
Eigen::MatrixXd chomp::ChompOptimizer::best_group_trajectory_ [private] |
Definition at line 132 of file chomp_optimizer.h.
double chomp::ChompOptimizer::best_group_trajectory_cost_ [private] |
Definition at line 133 of file chomp_optimizer.h.
unsigned int chomp::ChompOptimizer::collision_free_iteration_ [private] |
Definition at line 112 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::collision_increments_ [private] |
Definition at line 150 of file chomp_optimizer.h.
std::vector<std::vector<Eigen::Vector3d > > chomp::ChompOptimizer::collision_point_acc_eigen_ [private] |
Definition at line 125 of file chomp_optimizer.h.
std::vector<std::vector<std::string> > chomp::ChompOptimizer::collision_point_joint_names_ [private] |
Definition at line 122 of file chomp_optimizer.h.
std::vector<std::vector<Eigen::Vector3d > > chomp::ChompOptimizer::collision_point_pos_eigen_ [private] |
Definition at line 123 of file chomp_optimizer.h.
std::vector<std::vector<double> > chomp::ChompOptimizer::collision_point_potential_ [private] |
Definition at line 126 of file chomp_optimizer.h.
std::vector<std::vector<Eigen::Vector3d> > chomp::ChompOptimizer::collision_point_potential_gradient_ [private] |
Definition at line 128 of file chomp_optimizer.h.
std::vector<std::vector<Eigen::Vector3d > > chomp::ChompOptimizer::collision_point_vel_eigen_ [private] |
Definition at line 124 of file chomp_optimizer.h.
std::vector<std::vector<double> > chomp::ChompOptimizer::collision_point_vel_mag_ [private] |
Definition at line 127 of file chomp_optimizer.h.
Definition at line 118 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::final_increments_ [private] |
Definition at line 151 of file chomp_optimizer.h.
int chomp::ChompOptimizer::free_vars_end_ [private] |
Definition at line 110 of file chomp_optimizer.h.
int chomp::ChompOptimizer::free_vars_start_ [private] |
Definition at line 109 of file chomp_optimizer.h.
Definition at line 113 of file chomp_optimizer.h.
Definition at line 119 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::group_trajectory_backup_ [private] |
Definition at line 131 of file chomp_optimizer.h.
Definition at line 146 of file chomp_optimizer.h.
int chomp::ChompOptimizer::iteration_ [private] |
Definition at line 111 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::jacobian_ [private] |
Definition at line 155 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::jacobian_jacobian_tranpose_ [private] |
Definition at line 157 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::jacobian_pseudo_inverse_ [private] |
Definition at line 156 of file chomp_optimizer.h.
std::vector<std::vector<tf::Vector3> > chomp::ChompOptimizer::joint_axes_ [private] |
Definition at line 129 of file chomp_optimizer.h.
Definition at line 120 of file chomp_optimizer.h.
std::vector<std::string> chomp::ChompOptimizer::joint_names_ [private] |
Definition at line 164 of file chomp_optimizer.h.
std::map<std::string, std::map<std::string, bool> > chomp::ChompOptimizer::joint_parent_map_ [private] |
Definition at line 165 of file chomp_optimizer.h.
std::vector<std::vector<tf::Vector3> > chomp::ChompOptimizer::joint_positions_ [private] |
Definition at line 130 of file chomp_optimizer.h.
Eigen::VectorXd chomp::ChompOptimizer::joint_state_velocities_ [private] |
Definition at line 159 of file chomp_optimizer.h.
int chomp::ChompOptimizer::last_improvement_iteration_ [private] |
Definition at line 134 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::momentum_ [private] |
Definition at line 138 of file chomp_optimizer.h.
Definition at line 141 of file chomp_optimizer.h.
unsigned int chomp::ChompOptimizer::num_collision_free_iterations_ [private] |
Definition at line 135 of file chomp_optimizer.h.
int chomp::ChompOptimizer::num_collision_points_ [private] |
Definition at line 108 of file chomp_optimizer.h.
int chomp::ChompOptimizer::num_joints_ [private] |
Definition at line 105 of file chomp_optimizer.h.
int chomp::ChompOptimizer::num_vars_all_ [private] |
Definition at line 107 of file chomp_optimizer.h.
int chomp::ChompOptimizer::num_vars_free_ [private] |
Definition at line 106 of file chomp_optimizer.h.
const ChompParameters* chomp::ChompOptimizer::parameters_ [private] |
Definition at line 117 of file chomp_optimizer.h.
const std::string& chomp::ChompOptimizer::planning_group_ [private] |
Definition at line 116 of file chomp_optimizer.h.
std::vector<std::vector<int> > chomp::ChompOptimizer::point_is_in_collision_ [private] |
Definition at line 145 of file chomp_optimizer.h.
Eigen::VectorXd chomp::ChompOptimizer::random_joint_momentum_ [private] |
Definition at line 140 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::random_momentum_ [private] |
Definition at line 139 of file chomp_optimizer.h.
Eigen::VectorXd chomp::ChompOptimizer::random_state_ [private] |
Definition at line 158 of file chomp_optimizer.h.
Definition at line 114 of file chomp_optimizer.h.
Definition at line 115 of file chomp_optimizer.h.
Eigen::VectorXd chomp::ChompOptimizer::smoothness_derivative_ [private] |
Definition at line 154 of file chomp_optimizer.h.
Eigen::MatrixXd chomp::ChompOptimizer::smoothness_increments_ [private] |
Definition at line 149 of file chomp_optimizer.h.
std::vector<int> chomp::ChompOptimizer::state_is_in_collision_ [private] |
Array containing a boolean about collision info for each point in the trajectory
Definition at line 144 of file chomp_optimizer.h.
double chomp::ChompOptimizer::stochasticity_factor_ [private] |
Definition at line 142 of file chomp_optimizer.h.
Definition at line 161 of file chomp_optimizer.h.
Definition at line 162 of file chomp_optimizer.h.
double chomp::ChompOptimizer::worst_collision_cost_state_ [private] |
Definition at line 147 of file chomp_optimizer.h.