Skip to content

Commit

Permalink
Removed second DetectAndMoveAboveFood, changed grape's tiltStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Dec 14, 2021
1 parent bb18814 commit 1ba6157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/gen2_feeding_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ foodItems:
#pickUpAngleModes: [0, 2, 2, 0, 0, 0, 0]
names: ["apple", "banana", "bell_pepper", "broccoli", "cantaloupe", "carrot", "cauliflower", "celery", "cherry_tomato", "grape", "honeydew", "kiwi", "strawberry", "lettuce", "spinach", "kale"]
forces: [10, 10, 10, 10, 15, 22, 7, 22, 7, 10, 7, 7, 15, 7, 7, 7]
pickUpAngleModes: [1, 5, 1, 2, 1, 1, 0, 1, 1, 3, 3, 3, 0, 1, 2, 0]
pickUpAngleModes: [1, 5, 1, 2, 1, 1, 0, 1, 1, 1, 3, 3, 0, 1, 2, 0]

humanStudy:
autoAcquisition: true
Expand Down
4 changes: 2 additions & 2 deletions src/action/Skewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ bool skewer(const std::shared_ptr<Perception> &perception,
Eigen::Vector3d foodVec =
item->getPose().rotation() * Eigen::Vector3d::UnitX();
double baseRotateAngle = atan2(foodVec[1], foodVec[0]);
detectAndMoveAboveFood(perception, foodName, rotationToleranceForFood,
feedingDemo, &baseRotateAngle, actionNum);
// detectAndMoveAboveFood(perception, foodName, rotationToleranceForFood,
// feedingDemo, &baseRotateAngle, actionNum);
auto tiltStyle = item->getAction()->getTiltStyle();
if (tiltStyle == TiltStyle::ANGLED) {
// Apply base rotation of food
Expand Down

0 comments on commit 1ba6157

Please sign in to comment.