Terminate a task

Hello,
I want to add a sequence of tasks to Franka robot, but I found that I should terminate each one after finishing, and then add the new task.
to add a task I used :
world.add_task(FrankaPlaying(name=“name of the task”))
could you please tell me how to terminate a task?
Thanks

You can add as many tasks as you want. The task termination logic will have to go at the pre_step method in the task itself. We will add a remove_task method in World in a future release.

Let us know if you have more questions.

1 Like

Thank you @oahmed .