How to Stop and Resume Robot in simulation? (Don't stop the simulation)

Forum Forums Visual Components 4.1 .NET Addon Programming How to Stop and Resume Robot in simulation? (Don't stop the simulation)

This topic contains 3 replies, has 4 voices, and was last updated by Avatar Pet 3 weeks, 5 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15639
    Avatar
    benson
    Participant

    Hi, all:

    I want to stop the Robot in a simulation which isĀ  running(Don’t stop the simulation, only pause and resume the robot) us C# .NET.

    I try the function just like IRobot.Executor.Freeze() / IRobot.Executor.Continue() ,but it not work actually.

    Has anybody an idea how to deal that or already experiences?

    Best regards

    Benson

    #15699
    Avatar
    jouha
    Moderator

    Hi benson,

    The Freeze method is not definitely what you are looking for. That’s for client-simulation communication purposes.

    I believe that in any case it’s not possible to stop a robot in middle of a statement execution, but between statements it might be…

    I don’t have now time to test it but it might be worth trying to disable the executor with “IRobot.Executor.IsEnabled = false” and then enable it again and use IRobot.Executor.Continue() method.

    #15744
    Jay
    Jay
    Moderator

    @benson

    @jouha

    IRobotExecutor.IsEnabled = false will not pause a robot program. It is used to define if the executor will execute its program. If the program is already executing, there is really no way to stop it within simulation.

    #15798
    Avatar
    Pet
    Participant

    Hi benson!

    I’ve made something a while ago, what you might could use.

    It stops the Robot on a Collision, and continue to run on a signal, but the problem with it, was that the Robot forgets the last location it was heading towards.

    I stopped working on it, but if you can improve it I would be happy to see the result.

    Best regards

    P.

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.