Aggiunto header lower_body

This commit is contained in:
2026-06-18 12:13:35 +02:00
parent a2a299c0a1
commit f8fdc1dc84
5 changed files with 36 additions and 8 deletions
BIN
View File
Binary file not shown.
+1 -6
View File
@@ -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"
+28
View File
@@ -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
-2
View File
@@ -32,8 +32,6 @@ void Sensore::initCSV(std::vector<std::vector<float>> data){
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);
accData.push_back(tmpA); accData.push_back(tmpA);