Skip to content
Discussion options

You must be logged in to vote

Hello,
I tried to use UDP to connect Sofa with Simulink. It seems working, but the question remains.
When I start Simulink and Sofa, the data can transfer only one time, then Sofa has no response and the software is broken.
here is my part of code about UDP communication with Simulink.
Hope it can help you.

class FingerController(Sofa.Core.Controller):
    def __init__(self, *args, **kwargs):
        Sofa.Core.Controller.__init__(self, *args, **kwargs)
        # self.node1 = kwargs["node1"]
        # self.node2 = kwargs["node2"]
        # self.node3 = kwargs["node3"]
        self.cable1 = args[0]
        self.cable2 = args[1]
        self.cable3 = args[2]
        self.finger = args[3]
   …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brats2017
Comment options

@hugtalbot
Comment options

Answer selected by hugtalbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants