When I try to run the soft gripper simulation using my own mesh files and stl files, the finger.py file loads it correctly, but the gripper.py file loads the model from the tutorial. Please help. #5057
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
-- coding: utf-8 --
import Sofa.Core
import Sofa.constants.Key as Key
from stlib3.physics.deformable import ElasticMaterialObject
from stlib3.physics.constraints import FixedBox
from softrobots.actuators import PullingCable
from stlib3.physics.collision import CollisionMesh
from splib3.loaders import loadPointListFromFile
class FingerController(Sofa.Core.Controller):
def Finger(parentNode, name="Finger",
rotation=[0.0, 0.0, 0.0], translation=[0.0, 0.0, 0.0],
fixingBox=[-5.0, 0.0, 0.0, 10.0, 15.0, 20.0], pullPointLocation=[0.0, 0.0, 0.0]):
def createScene(rootNode):
GRIPPER.PY FILE IS BELOW
-- coding: utf-8 --
from grippercontroller import GripperController
from finger import Finger
def Gripper(parentNode=None):
gripper = parentNode.addChild("Gripper")
def createScene(rootNode):
Beta Was this translation helpful? Give feedback.
All reactions