<commit_before>#include "ManipulatorState.h"

using namespace affordance;
using namespace std;
using namespace boost;
using namespace Eigen;

ManipulatorState::ManipulatorState(const std::string &name,
				   const GlobalUID &guid)
  : _name(name), _guid(guid), _link()     
{
}

ManipulatorState::ManipulatorState(shared_ptr<const urdf::Link> link, 
				   const GlobalUID &guid)
  : _name(link->name), _guid(guid), _link(link)
{
}




/*ManipulatorState::ManipulatorState(const ManipulatorState &other) {
  }*/


/*ManipulatorState& ManipulatorState::operator=( const ManipulatorState& rhs ) {
  }*/

ManipulatorState::~ManipulatorState() {

}

GlobalUID ManipulatorState::getGlobalUniqueId() const
{
  return _guid;
}

string ManipulatorState::getName() const
{
	return _name;
}

Vector3f ManipulatorState::getColor() const
{
  return Vector3f(1,0,0);
}
 

Vector3f ManipulatorState::getXYZ() const
{
  throw NotImplementedException("getXYZ");
}
 
Vector3f ManipulatorState::getRPY() const
{<commit_msg>added comment<commit_after>#include "ManipulatorState.h"

using namespace affordance;
using namespace std;
using namespace boost;
using namespace Eigen;

ManipulatorState::ManipulatorState(const std::string &name,
				   const GlobalUID &guid)
  : _name(name), _guid(guid), _link()     
{
}

ManipulatorState::ManipulatorState(shared_ptr<const urdf::Link> link, 
				   const GlobalUID &guid)
  : _name(link->name), _guid(guid), _link(link)
{
}




/*ManipulatorState::ManipulatorState(const ManipulatorState &other) {
  }*/


/*ManipulatorState& ManipulatorState::operator=( const ManipulatorState& rhs ) {
  }*/

ManipulatorState::~ManipulatorState() {

}

GlobalUID ManipulatorState::getGlobalUniqueId() const
{
  return _guid;
}

string ManipulatorState::getName() const
{
	return _name;
}

Vector3f ManipulatorState::getColor() const
{
  return Vector3f(1,0,0); //todo
}
 

Vector3f ManipulatorState::getXYZ() const
{
  throw NotImplementedException("getXYZ");
}
 
Vector3f ManipulatorState::getRPY() const
{
{'fraction_non_alphanumeric': 0.1258048538880634, 'fraction_numerical': 0.006934125804853888, 'mean_word_length': 5.8474576271186445, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3956793', 'n_tokens_mistral': 717, 'n_tokens_neox': 686, 'n_words': 130}