Control Libraries
6.3.4
Loading...
Searching...
No Matches
source
robot_model
include
robot_model
exceptions
InverseKinematicsNotConvergingException.hpp
1
#pragma once
2
3
#include <exception>
4
5
namespace
robot_model::exceptions {
6
class
InverseKinematicsNotConvergingException
:
public
std::exception {
7
public
:
8
InverseKinematicsNotConvergingException
(
unsigned
int
iterations,
double
error) :
9
msg_(
"The inverse kinematics algorithm did not converge.\nThe residual error after "
+ std::to_string(iterations) +
10
" iterations is "
+ std::to_string(error) +
"."
) {}
11
12
virtual
char
const
*what()
const
noexcept
{
13
return
msg_.c_str();
14
}
15
16
private
:
17
std::string msg_;
18
};
19
}
// namespace robot_model::exceptions
robot_model::exceptions::InverseKinematicsNotConvergingException
Definition:
InverseKinematicsNotConvergingException.hpp:6
Generated by
1.9.5