Available: Example Program Using Qt-based Event Loop

115 views
Skip to first unread message

Carlo del Mundo

unread,
Oct 18, 2011, 12:41:41 AM10/18/11
to Lightweight Communications and Marshalling
Hi all. First, LCM is a great tool. Kudos to the developers. I've
noticed that the examples were lacking on the Qt part. I've created a
simple demo using a Qt GUI. It's a simple send/receive program that
uses LCM and the QSocketNotifier (as specified in the examples). Not
sure if this will be useful for anyone, but I'm sure someone will find
it useful.

This is under a PDF I created for my robotics team. The PDF can be
found at: http://auvc.googlecode.com/files/LCMInstallation.pdf

The important section is the following. Assuming you have Qt 4.7.2+,
LCM installed (and probably Ubuntu) do the following commands:
# wget http://auvc.googlecode.com/files/LCM_QT_EXAMPLE_cdel.tgz
# tar -zxvf LCM_QT_EXAMPLE_cdel.tgz
# cd LCM_QT_EXAMPLE_cdel/Receive
# qmake
# make
# ./Receive & 2>&1 /dev/null
# cd ../Send
# qmake
# make
# ./Send & 2>&1 /dev/null

Reply all
Reply to author
Forward
0 new messages