Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
david2611 committed May 3, 2023
2 parents 142365e + 06c9c1a commit f73c711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/benchbot_robot_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ def stop(self):
if not self.is_running():
print("\nController isn't running, so nothing to stop.")
return True

# Get the stop command
cmd = self._replace_variables(self.config_robot['stop_cmd'])

Expand Down Expand Up @@ -566,6 +565,10 @@ def __next():
else:
self.stop()
self.state['selected_environment'] = self._env_next()
self.instance.config_env = self.config['environments'][self.state['selected_environment']]
if 'trajectory_pose_next' in self.state:
del self.state['trajectory_pose_next']
del self.state['trajectory_poses']
self.start()
success = True
return flask.jsonify({'next_success': success})
Expand Down

0 comments on commit f73c711

Please sign in to comment.