Aggiunto header lower_body
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -1,10 +1,5 @@
|
|||||||
#include "collection_interface.hpp"
|
#include "collection_interface.hpp"
|
||||||
#include "../../csv/headers/csv.hpp"
|
#include "include_pieces.hpp"
|
||||||
#include "../../pieces/headers/caviglia.hpp"
|
|
||||||
#include "../../pieces/headers/coscia.hpp"
|
|
||||||
#include "../../pieces/headers/sensore.hpp"
|
|
||||||
#include "../../joints/headers/rigid_joint.hpp"
|
|
||||||
#include "../../joints/headers/pivot_joint.hpp"
|
|
||||||
|
|
||||||
#ifndef GAMBA_H
|
#ifndef GAMBA_H
|
||||||
#define GAMBA_H
|
#define GAMBA_H
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include "../../csv/headers/csv.hpp"
|
||||||
|
#include "../../pieces/headers/caviglia.hpp"
|
||||||
|
#include "../../pieces/headers/coscia.hpp"
|
||||||
|
#include "../../pieces/headers/sensore.hpp"
|
||||||
|
#include "../../joints/headers/rigid_joint.hpp"
|
||||||
|
#include "../../joints/headers/pivot_joint.hpp"
|
||||||
|
#include "../../pieces/headers/torso.hpp"
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#include "gamba.hpp"
|
||||||
|
|
||||||
|
#ifndef LOWER_BODY_H
|
||||||
|
#define LOWER_BODY_H
|
||||||
|
|
||||||
|
struct gamba_data{
|
||||||
|
rb::Vector3 pos;
|
||||||
|
unsigned int* dataPos;
|
||||||
|
std::string cosciaData;
|
||||||
|
std::string cavigliaData;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class lower_body
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
Gamba sx;
|
||||||
|
Gamba dx;
|
||||||
|
Torso t;
|
||||||
|
|
||||||
|
public:
|
||||||
|
lower_body(std::vector<gamba_data> data);
|
||||||
|
~lower_body();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -31,8 +31,6 @@ void Sensore::initCSV(std::vector<std::vector<float>> data){
|
|||||||
std::vector<float> tmpR = {row[2],row[3],row[1]};
|
std::vector<float> tmpR = {row[2],row[3],row[1]};
|
||||||
std::vector<float> tmpA = {row[5],row[6],row[4]};
|
std::vector<float> tmpA = {row[5],row[6],row[4]};
|
||||||
std::vector<float> tmpG = {-row[8],-row[9],-row[7]};
|
std::vector<float> tmpG = {-row[8],-row[9],-row[7]};
|
||||||
|
|
||||||
/////// DA CAMBIARE QUI ///////////
|
|
||||||
|
|
||||||
|
|
||||||
rotData.push_back(tmpR);
|
rotData.push_back(tmpR);
|
||||||
|
|||||||
Reference in New Issue
Block a user