Skip to content

Commit

Permalink
Merge pull request graspit-simulator#26 from BoyuanChen/master
Browse files Browse the repository at this point in the history
importObstacleCB now takes both obstacle name and absolute path
  • Loading branch information
jvarley authored Aug 30, 2017
2 parents c31d849 + feb41fa commit 16deb2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/graspit_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,12 @@ bool GraspitInterface::importObstacleCB(graspit_interface::ImportObstacle::Reque

Body * b = graspitCore->getWorld()->importBody(QString("Body"),filename);
if(b == NULL){
response.result = response.RESULT_FAILURE;
return true;
//Now try to load using unaltered filepath from request.
b = graspitCore->getWorld()->importBody(QString("Body"),QString(request.filename.data()));
if(b == NULL){
response.result = response.RESULT_FAILURE;
return true;
}
}

vec3 newTranslation(request.pose.position.x * 1000.0,
Expand Down

0 comments on commit 16deb2a

Please sign in to comment.