AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
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
5
simmgr =
AnimatSimPy.SimulationMgr.Instance
()
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"
))
AnimatSimPy.MotorizedJoint.CastToDerived
tuple CastToDerived
Definition:
bin/AnimatSimPy.py:9699
AnimatSimPy.ActiveSim
def ActiveSim(args)
Definition:
bin/AnimatSimPy.py:14729
AnimatSimPy.SimulationMgr.Instance
tuple Instance
Definition:
bin/AnimatSimPy.py:14701
Libraries
AnimatSimPy
Scripts
Basic.py
Generated on Tue Sep 29 2015 07:07:12 for AnimatLab by
1.8.10