Miguel Ángel González Santamarta
Miguel Ángel González Santamarta
Well, another solution could be implementing a new state with a service as you suggest. What about the following code? ```python from typing import List, Callable from std_srvs.srv import SetBool...
How do you want to control the skip? I mean, in the above example, you can use the service to enable or disable if the state is skipped before executing...
If you want to skip a state while executing, how do you want to stop that state, canceling it?
You can cancel the state inside the _skip_state: ```python def _skip_state( self, req: SetBool.Request, res: SetBool.Response ) -> SetBool.Response: self._skipped = req.data if self._skipped: self.cancel_state() return SetBool.Response() ```
You can use the same ```cancel_state``` function to cancel an ActionState. This will cancel the action client, which means that will cancel the action server.
Hey @aminballoon, how is this going?
Hey @chrisbitter, this will be a great feature to add to YASMIN. A primitive version could be this, but the outcomes of the states and the cancelations should be added....
Hey @chrisbitter, how is this going?
Hi @teapfw, thanks for the work. A PR with the changes would be great. There are some minor errors and fixes that you can treat: comments on init params are...
I'm thinking of the case of adding the same state more than once. Besides, the C++ version does not work equal to the Python version when generating the names. The...