Commit 9572788f authored by Sebastien Timmermans's avatar Sebastien Timmermans 🎹

Update interface_python.md

parent 10f4fe56
Pipeline #4702 passed with stages
in 12 minutes and 31 seconds
......@@ -81,6 +81,9 @@ in the following files:
_WARNING:_ the files are generated during the first attempt of compiling by Visual Studio, meaning you cannot edit thme before getting the error!
__cython executable not found__:
If the executable cython.exe is not found, just hardcode the path in CMake-gui (it was under C:\ProgramData\Anaconda2\Scripts\cython.exe on my computer)
### Build your project ###
Follow the [tutorial](http://robotran-doc.git-page.immc.ucl.ac.be/TutorialModellingFeatures/output_tuto/c-code/bodiesJoint.html#build-an-run-the-project) but set the flag "SEPARATE_BUILD" to "ON":
* With Cmake-gui: Just click on the box.
......@@ -111,8 +114,14 @@ from mbs_dirdyn_py import *
# Thirdly: load the mbs project file
File = 'FileName.mbs' # Update the FileName
my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled)
# LINUX:
mbs_data = MbsData(my_path) # Create and load the MbsData structure
# WINDOWS:
my_path = sys.path[0]+"/../dataR/"+File # Complete path to the mbs file (auto-filled)
buildPath = os.path.join(sys.path[0], "build","Release")
mbs_data = MbsData(my_path, buildPath) # Create and load the MbsData structure
# Change whatever you need:
# mbs_data.q0[2]=5.0 : Set the value of the joint 2 to 5.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment