assume that 192.168.0.100 is the server and 192.168.0.153 is the client with Matlab
console on the server:
(and same with rosrun turtlesim turtlesim_node on another console)
robotctrl = rospublisher( ‘/turtle1/cmd_vel’ )
robotpose = rossubscriber( ‘/turtle1/pose’ )
twist = rosmessage(robotctrl.MessageType)
twist.Linear.X = 1
state = receive( robotpose, 1 )
(RAW, unedited dump of my notes that ends in a glorious failure) Goals for today:
- IOMMU groups on Zbook 14 G1 + Slackware 14.2
- GPU passthrough for a second graphics card (some kind of a Radeon)
- (maybe) Looking Glass to copy framebuffer to the Intel GPU
So, lately during the summer I wanted to have some new robots for the students to work on. You know, some motors, couple of sensors, built-in Arduino-like electronics, that kinda stuff. And after about a week of searching I found a perfect robot … a 3D printer.
Just a first trial of using python-whiteboard with a stock Wii Remote (those things run on bluetooth) and a screen projector on a wall. As an infrared pen – a TV remote.
(sarcasm warning) Due to a recent massive surge of interest in the blog and the sheer terror of somebody actually reading it (yes, I’m looking at you Ola and Gosia), here we go with a rather pointless post – a quick autops… I mean, precise dissection of a 3D printer – Tiertime / PP3DP Up Plus 2. Or, at least, a glorified photo shoot.
Goal: postprocess what absolute magnetic angle measurement sensor (woah) AS5048a returns with Matlab in order to see plots and make animations.
First result: what in the name of valhalla is the Matlab serial doing?!
Second result: works.
The adventures with the Crazyflie on Linux Slackware 14.2 begins! … with troubles 🙂
The goal is to get it going with Python, then with Matlab, then with Simulink, then with a mount that will bind it nicely to the ground with 3DOF gimbal.
Let’s start with drivers and Python.
So, it basically boils down to an old problem: how do I get some user-controlled inputs in Matlab?
Keyboard handling in real-time is basically nonexistant, joystick is alright, but the most easy way to get some input and freedom of controlling things is – to poll the mouse position.
xy = get( 0, 'PointerLocation' )
Let’s get going with a short series of tutorials dedicated to nonlinear control examples with Matlab/Octave implementation. First to go: unicycle.