A Quick and Dirty Guide to PyQt5

A Quick and Dirty Guide to PyQt5

So far I have seen a lot of guides that introduce the PyQt5 as the saviour of humanity, the holy hand grenade of all the GUIs out there, but I have not yet seen a guide where… well, you start with a basic stuff. Where you abuse the notation at first, make errors, just to get things going.

So here you go – a totally wrong, dirty guide to how not to write in PyQt5! With examples! And NO QML.

Read more

[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 )

1 2 3 4