-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
168 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
#ifndef AIKIDO_DISTANCE_ANGULARDISTANCEMETRIC_HPP_ | ||
#define AIKIDO_DISTANCE_ANGULARDISTANCEMETRIC_HPP_ | ||
|
||
#include "DistanceMetric.hpp" | ||
#include "../statespace/SO2.hpp" | ||
#include "DistanceMetric.hpp" | ||
|
||
namespace aikido { | ||
namespace distance { | ||
|
||
namespace aikido | ||
{ | ||
namespace distance | ||
{ | ||
/// Computes the shortest distance between two angles in SO(2) | ||
class SO2Angular : public DistanceMetric | ||
{ | ||
public: | ||
/// Constructor. | ||
/// \param _space The SO2 this distance metric operates on | ||
explicit SO2Angular( | ||
std::shared_ptr<statespace::SO2> _space); | ||
explicit SO2Angular(std::shared_ptr<statespace::SO2> _space); | ||
|
||
// Documentation inherited | ||
statespace::StateSpacePtr getStateSpace() const override; | ||
|
||
/// Computes shortest distance between two angles. (return value between 0 and pi) | ||
/// Computes shortest distance between two angles. (return value between 0 and | ||
/// pi) | ||
/// \param _state1 The first state (type: SO2::State) | ||
/// \param _state2 The second state (type: SO2::State) | ||
double distance(const statespace::StateSpace::State* _state1, | ||
const statespace::StateSpace::State* _state2) const override; | ||
double distance( | ||
const statespace::StateSpace::State* _state1, | ||
const statespace::StateSpace::State* _state2) const override; | ||
|
||
private: | ||
std::shared_ptr<statespace::SO2> mStateSpace; | ||
}; | ||
} | ||
} | ||
|
||
} // namespace distance | ||
} // namespace aikido | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
#ifndef AIKIDO_DISTANCE_GEODESICDISTANCEMETRIC_HPP_ | ||
#define AIKIDO_DISTANCE_GEODESICDISTANCEMETRIC_HPP_ | ||
|
||
#include "DistanceMetric.hpp" | ||
#include "../statespace/SO3.hpp" | ||
#include "DistanceMetric.hpp" | ||
|
||
namespace aikido { | ||
namespace distance { | ||
|
||
namespace aikido | ||
{ | ||
namespace distance | ||
{ | ||
/// Implements a distance metric on SO(3) | ||
class SO3Angular : public DistanceMetric | ||
{ | ||
public: | ||
/// Constructor. | ||
/// \param _space The SO3 this distance metric operates on | ||
explicit SO3Angular( | ||
std::shared_ptr<statespace::SO3> _space); | ||
explicit SO3Angular(std::shared_ptr<statespace::SO3> _space); | ||
|
||
// Documentation inherited | ||
statespace::StateSpacePtr getStateSpace() const override; | ||
|
||
/// Computes distance (in radians) between the two states | ||
/// \param _state1 The first state (type SO3::State) | ||
/// \param _state2 The second state (type SO3::State) | ||
double distance(const statespace::StateSpace::State* _state1, | ||
const statespace::StateSpace::State* _state2) const override; | ||
double distance( | ||
const statespace::StateSpace::State* _state1, | ||
const statespace::StateSpace::State* _state2) const override; | ||
|
||
private: | ||
std::shared_ptr<statespace::SO3> mStateSpace; | ||
}; | ||
} | ||
} | ||
|
||
} // namespace distance | ||
} // namespace aikido | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.