LICENSE USE
Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) https://creativecommons.org/licenses/by-nc/4.0/
based on the Ronin SDK this simple two script python set reads and logs gimbal yaw, roll, pitch, and focus motor position, and then will replay the movement based on the log. Used as a cinematography and vfx motion control tool.
Made in collaboration and consultation by Cornelius von Einem, Casey Basichis, Riley Harmon, and DJI Engineers
based on dji_rs2_ros_controller and the R SDK Demo Software.
Python3 using Ubuntu 20.04 Focal Fossa
see ronin-play and ronin-record for required python dependencies to install
CANable Pro with candlelight firmware or similar adapters (canUSB) for pure socket can connection.
Custom 3D printed RS2 CAN connector or DJI R Focus Wheel (connection diagram)
3D Print STL file for custom can connector instead of Focus Wheel included, glue in and solder with these pogo pins
- Create a bin folder in your home directory, add all files to bin directory, make sure all files have permission as executable
- use nano to edit your .bashrc file
$ nano ~/.bashrc
- add the following line to the .bashrc end of file. it will allow you to simply type the name of the python scripts and bash scripts for bringing up the can device in the terminal to excute
export PATH=$PATH:~/bin
save the .bashrc file and either re-source it or close the terminal and open a new terminal window
- run
sudo can-up
in terminal to initialize the can device (you'll need to edit this file depending on your type of can device interface) - run
ronin-record
in terminal to record the movements to the log - move the ronin using joystick or force mobile
- use
CTRL-C
in terminal to end the program - run
ronin-play
in termal to playback the movement - run
can-down
to de-initialize the can controller
pip3 install python-can
pip3 install icecream
pip3 install pandas
pip3 install pyserial
pip3 install playsound