https://github.com/matlab2tikz/matlab2tikz – Matlab to TikZ (Latex graphics) conversion tool for plots
https://www.sharelatex.com/learn/TikZ_package – TikZ documentation – general graphics
https://www.sharelatex.com/learn/Pgfplots_package – Pgfplots documentation – plotting tool inside Latex
Modifications and examples below.
Did you know you can tag the plots in Matlab for easier searching? Because I fuckin’ didn’t.
Why so brutal? Well, after 6 years of writing your PhD in Matlab you CAN become furious when you realise instead of keeping the links to the currently opened plots in a global variables and different lists you could’ve been naming them all that time…
Tag the plot: description for searching
aa = plot(2,2);
set(aa, 'Tag', 'foot trajectory' )
set( findobj('Tag','foot trajectory'), 'XData', [2 3], 'YData', '4 5')
This one is a simple experiment done to test if the Dynamixel motor in an open loop (no internal PID) are fast enough when controlled by Matlab/USB-serial so that a HZD-based method will work.
This is an old one, but is working quite nice and should be still useful for working with Dynamixel motor (AX-12+, AX-12A).
The goal was to have a nice toolbox used for direct control of Dynamixel motors using USB2Dynamixel or any other USB-Serial (half-duplex, ~1Mbps) adapter.
This is an old one – a simple two-wheeled robot (unicycle) based on microcontroller esp8266 (with internal Wifi, in a stamp-like footprint, cool!), two servos, battery and with Matlab connectivity. How it works? Youtube:
All hail the mighty Matlab! … when it works
Ok, YARP and iCub-main are up and working, time for the jewel in the crown of every applied math-robotisct… robosicis… robotics mathematician: Matlab
Time for iCub! … shit. According to the icub manual:
CREATE_OPTIONAL_CARRIERS, set to ON
ENABLE_yarpcar_bayer_carrier, set to ON
ok, back to yarp/build/
cd .. && mkdir build2 && cd build2
cmake -DCREATE_GUIS=on -DCREATE_LIB_MATH=on -DCREATE_OPTIONAL_CARRIERS=on -DENABLE_yarpcar_bayer_carrier=on ../
Done, what now? Clone the repo, cmake:
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_icubmod_cartesiancontrollerclient=on -DENABLE_icubmod_cartesiancontrollerserver=on -DENABLE_icubmod_gazecontrollerclient=on ../
make -j4, make install and go through the tutorial to get it working! yarpserver in the background somewhere (until the end, it’s not gonna hang despite me great efforts) and … Oh… shit…
Just a quick reminder to myself how to update the locate database:
/usr/bin/updatedb -c /etc/updatedb.conf