Skip to content

Commit

Permalink
Show detected food once the SegmentFood action has been called
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Nov 14, 2023
1 parent 49960d9 commit 08b4d79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion feedingwebapp/src/Pages/Home/MealStates/BiteSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@ const BiteSelection = (props) => {
numImageClicks === 0 ? responseCallback : null
)
setNumImageClicks(numImageClicks + 1)
// The current implementation of food segmentation does not send feedback,
// so we manually set the action status to executing.
setActionStatus({
actionStatus: ROS_ACTION_STATUS_EXECUTE
})
},
[segmentFromPointAction, numImageClicks, feedbackCallback, responseCallback]
[segmentFromPointAction, numImageClicks, feedbackCallback, responseCallback, setNumImageClicks, setActionStatus]
)

/**
Expand Down

0 comments on commit 08b4d79

Please sign in to comment.