Skip to content

Commit

Permalink
src/mobility/src/mobility/swarmie.py: fix dry plant logic error,+infolog
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter90 committed Mar 11, 2021
1 parent 7b1bdca commit 9d89fe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mobility/src/mobility/swarmie.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def _plant(self, msg):
self.plants[msg.id]['temp'] = msg.temp
self.plants[msg.id]['pot_imp'] = msg.pot_imp
self.plants[msg.id]['plant_imp'] = msg.plant_imp
if msg.pot_imp > moisture_msg.DRY_PLANT or msg.pot_imp > moisture_msg.DRY_SOIL:
if msg.plant_imp > moisture_msg.DRY_PLANT or msg.pot_imp > moisture_msg.DRY_SOIL:
rospy.loginfo("Wilting Chili Detected!!! plant #" + str(msg.id))
pose = self.model_state("plant_"+str(msg.id), "world").pose
self.delete_model("plant_"+str(msg.id))
self.spawn_model("plant_"+str(msg.id), self.thirst_model, "", pose,"world")
Expand Down

0 comments on commit 9d89fe9

Please sign in to comment.