Skip to content

Commit

Permalink
Merge pull request #14 from joschu/temp_bugfix
Browse files Browse the repository at this point in the history
Bug Fixes
  • Loading branch information
joschu committed Mar 15, 2016
2 parents 06ee076 + 2f60091 commit 69b2a9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cloudproc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


find_package(PCL 1.6 REQUIRED)
find_package(PCL 1.7 REQUIRED)

include_directories(SYSTEM ${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
Expand Down
9 changes: 6 additions & 3 deletions src/trajopt/configuration_space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ void RobotAndDOF::SetDOFValues(const DblVec& dofs) {
OR::Transform T;
OR::RaveGetTransformFromAffineDOFValues(T, dofs.begin()+joint_inds.size(), affinedofs, rotationaxis, true);
robot->SetTransform(T);
robot->SetDOFValues(dofs, false, joint_inds);
if (joint_inds.size() > 0)
robot->SetDOFValues(dofs, false, joint_inds);
}
else {
robot->SetDOFValues(dofs, false, joint_inds);
Expand All @@ -23,7 +24,8 @@ void RobotAndDOF::SetDOFValues(const DblVec& dofs) {

DblVec RobotAndDOF::GetDOFValues() {
DblVec out;
robot->GetDOFValues(out, joint_inds);
if (joint_inds.size() > 0)
robot->GetDOFValues(out, joint_inds);
if (affinedofs != 0) {
out.resize(GetDOF());
OR::Transform T = robot->GetTransform();
Expand All @@ -40,7 +42,8 @@ void RobotAndDOF::SetRobotActiveDOFs() {
}

void RobotAndDOF::GetDOFLimits(DblVec& lower, DblVec& upper) const {
robot->GetDOFLimits(lower, upper, joint_inds);
if (joint_inds.size() > 0)
robot->GetDOFLimits(lower, upper, joint_inds);
const int translation_dofs[3] = {DOF_X, DOF_Y, DOF_Z};
for (int i=0; i < 3; ++i) {
if (affinedofs & translation_dofs[i]) {
Expand Down

0 comments on commit 69b2a9f

Please sign in to comment.