Skip to content
Snippets Groups Projects
Commit 769babf1 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

added generated aron files to gitignore

parent 10be4589
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
.idea .idea
source/*/Test.h source/*/Test.h
source/*/*.aron.generated.h
*.bak *.bak
*# *#
......
/*
* This file is part of ArmarX.
*
* Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T),
* Karlsruhe Institute of Technology (KIT), all rights reserved.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*************************************************************************
* WARNING: This file is autogenerated.
* Original file: /home/fabian/Software/ArmarX/RobotAPI/source/RobotAPI/libraries/aron/test/xmls/HumanPose.xml
* Timestamp of generation: Mon Aug 31 17:02:44 2020
* Please do not edit since your changes may be overwritten on the next generation
* If you have any questions please contact: Fabian Peller-Konrad (fabian dot peller-konrad at kit dot edu)
*************************************************************************
*/
#ifndef ARONTESTSEGMENT__NATURALIKRESULT__ARON_TYPE_DEFINITION_INCLUDE_GUARD
#define ARONTESTSEGMENT__NATURALIKRESULT__ARON_TYPE_DEFINITION_INCLUDE_GUARD
#include <string>
#include <vector>
#include <map>
#include <Eigen/Core>
#include <RobotAPI/interface/aron.h>
#include <RobotAPI/libraries/aron/codegenerator/AronCppClass.h>
#include <RobotAPI/libraries/aron/io/classWriters/AronDataNavigatorWriter/AronDataNavigatorWriter.h>
#include <RobotAPI/libraries/aron/io/classReaders/AronDataNavigatorReader/AronDataNavigatorReader.h>
namespace armarx
{
class NaturalIKResult
: virtual public armarx::aron::codegeneration::AronCppClass
{
public:
std::vector<float> jointValues;
bool reached;
public:
NaturalIKResult()
{
initialize();
reset();
}
public:
/**
* @brief operator==() - This method checks whether all values equal another instance.
* @param i - The other instance
* @return - true, if all members are the same, false otherwise
*/
bool operator==(const armarx::NaturalIKResult& i) const
{
if (not(jointValues == i.jointValues))
{
return false;
}
if (not(reached == i.reached))
{
return false;
}
return true;
}
/**
* @brief reset() - This method resets all member variables to default.
* @return - nothing
*/
virtual void reset() override
{
jointValues.clear();
reached = {};
}
/**
* @brief initialize() - This method initializeses special base-class members.
* @return - nothing
*/
virtual void initialize() override
{
// setup aronType
std::map<std::string, armarx::aron::AronAbstractType::PointerType> aronTypeRoot_objectiteratorcontainer;
armarx::aron::AronFloatType::PointerType aronTypeRoot_jointValues_listtype = armarx::aron::AronFloatType::PointerType(new armarx::aron::AronFloatType());
armarx::aron::AronListType::PointerType aronTypeRoot_jointValues = armarx::aron::AronListType::PointerType(new armarx::aron::AronListType(aronTypeRoot_jointValues_listtype));
aronTypeRoot_objectiteratorcontainer["jointValues"] = aronTypeRoot_jointValues;
armarx::aron::AronBoolType::PointerType aronTypeRoot_reached = armarx::aron::AronBoolType::PointerType(new armarx::aron::AronBoolType());
aronTypeRoot_objectiteratorcontainer["reached"] = aronTypeRoot_reached;
armarx::aron::AronObjectType::PointerType aronTypeRoot = armarx::aron::AronObjectType::PointerType(new armarx::aron::AronObjectType("armarx::NaturalIKResult", aronTypeRoot_objectiteratorcontainer));
aronType = aronTypeRoot;
}
/**
* @brief write() - This method returns a new type from the member data types using a writer implementation.
* @param w - The writer implementation
* @return - the result of the writer implementation
*/
virtual void write(armarx::aron::io::AronWriter& w) const override
{
w.writeStartDict();
w.writeKey("jointValues");
w.writeStartList();
for (unsigned int jointValues_listiterator = 0; jointValues_listiterator < jointValues.size(); ++jointValues_listiterator)
{
w.writeFloat(jointValues[jointValues_listiterator]);
}
w.writeEndList();
w.writeKey("reached");
w.writeBool(reached);
w.writeEndDict();
}
/**
* @brief read() - This method sets the struct members to new values given in a reader implementation.
* @param r - The reader implementation
* @return - nothing
*/
virtual void read(armarx::aron::io::AronReader& r) override
{
reset();
r.readStartDict();
r.readMember("jointValues");
r.readStartList();
while (!r.readEndList())
{
float jointValues_listiterator;
jointValues_listiterator = r.readFloat();
jointValues.push_back(jointValues_listiterator);
}
r.readMember("reached");
reached = r.readBool();
r.readEndDict();
}
/**
* @brief specializedWrite() - This method returns a new type from the member data types using a writer implementation.
* @return - the result of the writer implementation
*/
armarx::aron::AronDataPtr toAron() const
{
armarx::aron::io::AronDataNavigatorWriter writer;
this->write(writer);
return writer.getResult();
}
/**
* @brief specializedRead() - This method sets the struct members to new values given in a reader implementation.
* @return - nothing
*/
void fromAron(const armarx::aron::AronDataPtr& input)
{
armarx::aron::io::AronDataNavigatorReader reader(input);
this->read(reader);
}
}; // class NaturalIKResult
} // namespace armarx
#endif // ARONTESTSEGMENT__NATURALIKRESULT__ARON_TYPE_DEFINITION_INCLUDE_GUARD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment