[NotesToMyself] ROS client-server on different machines

assume that 192.168.0.100 is the server and 192.168.0.153 is the client with Matlab
console on the server:

export ROS_IP=192.168.0.100
export ROS_MASTER_URI=http://192.168.0.100:11311
roscore

(and same with rosrun turtlesim turtlesim_node on another console)

matlab:
setenv(‘ROS_MASTER_URI’,’http://192.168.0.100:11311′)
setenv(‘ROS_IP’,’192.168.0.153′)
rosinit
robotctrl = rospublisher( ‘/turtle1/cmd_vel’ )
robotpose = rossubscriber( ‘/turtle1/pose’ )

twist = rosmessage(robotctrl.MessageType)
twist.Linear.X = 1
send(robotctrl,twist)

pause(0.1)
state = receive( robotpose, 1 )

Crazyflie on Slackware 14.2

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.
Read more

1 2