Skip to content

Commit 92427d8

Browse files
committed
Addressed PR comments
1 parent c6325b2 commit 92427d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

feedingwebapp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The overall user flow for this robot can be seen below.
1414
- [Node.js](https://nodejs.org/en/download/package-manager)
1515
- [ROS2 Humble](https://docs.ros.org/en/humble/Installation.html)
1616
- [PRL fork of rosbridge_suite](https://github.com/personalrobotics/rosbridge_suite). This fork enables rosbridge_suite to communicate with ROS2 actions.
17-
- [ada_feeding (branch: amaln/add_ada_feeding_msgs)](https://github.com/personalrobotics/ada_feeding/tree/amaln/add_ada_feeding_msgs).
17+
- [ada_feeding (branch: ros2-devel)](https://github.com/personalrobotics/ada_feeding/tree/ros2-devel).
1818

1919
## Getting Started in Computer
2020

feedingwebapp/src/Pages/Home/MealStates/MovingAbovePlate.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const MovingAbovePlate = (props) => {
5353
let moveAbovePlateAction = useState(createROSActionClient(ros, actionName, messageType))[0]
5454

5555
/**
56-
* Callback function for when the action setns feedback. It updates the
56+
* Callback function for when the action sends feedback. It updates the
5757
* actionStatus local state variable.
5858
*
5959
* @param {object} feedbackMsg - the feedback message sent by the action
@@ -177,8 +177,8 @@ const MovingAbovePlate = (props) => {
177177
switch (actionStatus.actionStatus) {
178178
case ROS_ACTION_STATUS_EXECUTE:
179179
if (actionStatus.feedback) {
180-
let progress = 1 - actionStatus.feedback.motion_curr_distance / actionStatus.feedback.motion_initial_distance
181180
if (!actionStatus.feedback.is_planning) {
181+
let progress = 1 - actionStatus.feedback.motion_curr_distance / actionStatus.feedback.motion_initial_distance
182182
return (
183183
<>
184184
<h3>Robot is moving...</h3>

0 commit comments

Comments
 (0)