Skip to content
Snippets Groups Projects
Commit a6e1460e authored by Markus Swarowsky's avatar Markus Swarowsky
Browse files

fixed a typo and added ABS encoder values to the KinematicDataUnit

parent 7c17d271
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@ namespace armarx
jointTorques(jointNames.size(), nullptr),
jointCurrents(jointNames.size(), nullptr),
jointMotorTemperatures(jointNames.size(), nullptr),
jointGearTempertures(jointNames.size(), nullptr),
jointGearTemperatures(jointNames.size(), nullptr),
jointAbsPositions(jointNames.size(), nullptr),
jointNames {jointNames},
jointIndices {toIndexMap(jointNames)}
{}
......@@ -91,7 +92,11 @@ namespace armarx
}
virtual std::vector<const float*> getJointGearTemperatures(const std::vector<std::string>& joints)const
{
return getPointers(joints, jointGearTempertures);
return getPointers(joints, jointGearTemperatures);
}
virtual std::vector<const float*> getJointAbsPositions(const std::vector<std::string>& joints)const
{
return getPointers(joints, jointAbsPositions);
}
protected:
......@@ -100,7 +105,8 @@ namespace armarx
std::vector<float*> jointTorques;
std::vector<float*> jointCurrents;
std::vector<float*> jointMotorTemperatures;
std::vector<float*> jointGearTempertures;
std::vector<float*> jointGearTemperatures;
std::vector<float*> jointAbsPositions;
private:
template<class T>
std::vector<const T*> getPointers(const std::vector<std::string>& joints, const std::vector<T*>& targets) const
......
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