AnimatLab  2
Test
Basic.py
1 import sys,os,traceback
2 sys.path.append("C:/Projects/AnimatLabSDK/AnimatLabPublicSource/bin")
3 os.chdir("C:/Projects/AnimatLabSDK/AnimatLabPublicSource/bin")
4 import AnimatSimPy
6 simthread = simmgr.CreateSimulation("C:\Projects\AnimatLabSDK\AnimatLabPublicSource\Tutorials\Examples\StandAloneSimTest\Bullet_Single_x32_Debug.asim")
7 simthread = simmgr.CreateSimulation("C:\Projects\AnimatLabSDK\AnimatLabPublicSource\Libraries\RoboticsAnimatSim\Robotics_UnitTests\TestResources\BasicHingeTest\BasicHingeTest_Win32_Robotics.asim")
8 simthread.Simulate(2)
9 simmgr.ShutdownAllSimulations()
10 
11 
12 elbow = AnimatSimPy.MotorizedJoint.CastToDerived(AnimatSimPy.ActiveSim().FindByID("0854af91-cef9-48ce-9dba-545daf873a15"))
13 elbow = AnimatSimPy.MotorizedJoint.CastToDerived(AnimatSimPy.ActiveSim().FindByID("ba1616eb-45ad-48b4-aee4-f47c6d19ba09"))
def ActiveSim(args)