Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit a3c1a99d authored by kraus's avatar kraus
Browse files

fixes different placement if angle is negative/positive

parent ec16be5e
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,11 @@ BendBase::BendBase(const std::string &name):
std::vector<Vector_t> BendBase::getDesignPath() const {
unsigned int size = refTrajMap_m.size();
std::vector<Vector_t> designPath(size);
double angleZ = getRotationAboutZ();
Quaternion rotationAboutZ(cos(angleZ / 2), sin(angleZ / 2) * Vector_t(0, 0, 1));
for (unsigned int i = 0; i < size; ++ i) {
Vector_t currentPosition = refTrajMap_m[i];
designPath[i] = currentPosition;
designPath[i] = rotationAboutZ.rotate(currentPosition);
}
return designPath;
......
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