BBBlue turtlesim qtbase5-dev

On my quest to learn ROS and convert sami to BBBlue I’d like to try the turtlesim turtle_teleop_key on the BBBlue. I have the simulation working on the desktop machine. Now I’m building turtlsim on the 'blue. Looks like it wants the qtbase5-dev package. It’s kinda large 321mb is there a smaller library that will satisfy this depend? Or an alternative to turtlesim turtle_teleop_key?

`
jeffa@bluemoon:~/catkin_ws$ catkin_make --pkg turtlesim
[…]
– +++ processing catkin package: ‘turtlesim’
– ==> add_subdirectory(ros_tutorials/turtlesim)
– Using these message generators: gencpp;genlisp;genpy
CMake Error at ros_tutorials/turtlesim/CMakeLists.txt:6 (find_package):
By not providing “FindQt5Widgets.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“Qt5Widgets”, but CMake did not find one.

Could not find a package configuration file provided by “Qt5Widgets” with
any of the following names:

Qt5WidgetsConfig.cmake
qt5widgets-config.cmake

Add the installation prefix of “Qt5Widgets” to CMAKE_PREFIX_PATH or set
“Qt5Widgets_DIR” to a directory containing one of the above files. If
“Qt5Widgets” provides a separate development package or SDK, be sure it has
been installed.

– Configuring incomplete, errors occurred!
See also “/home/jeffa/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/jeffa/catkin_ws/build/CMakeFiles/CMakeError.log”.
Makefile:1330: recipe for target ‘cmake_check_build_system’ failed
make: *** [cmake_check_build_system] Error 1
Invoking “make cmake_check_build_system” failed
jeffa@bluemoon:~/catkin_ws$
`

I don’t really want to use up 321mb of available disk. df -h /dev/mmcblk1p1 3.5G 1.9G 1.4G 58% /

`

jeffa@bluemoon:~/catkin_ws$ sudo apt-get install qtbase5-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core dconf-gsettings-backend dconf-service fontconfig fontconfig-config fonts-dejavu-core glib-networking
glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme libatk-bridge2.0-0
libatk1.0-0 libatk1.0-data libatspi2.0-0 libcairo-gobject2 libcairo2 libcolord2 libcroco3 libcups2 libdatrie1 libdconf1
libdouble-conversion1 libdrm-amdgpu1 libdrm-dev libdrm-etnaviv1 libdrm-exynos1 libdrm-freedreno1 libdrm-nouveau2 libdrm-omap1
libdrm-radeon1 libdrm-tegra0 libdrm2 libegl1-mesa libegl1-mesa-dev libepoxy0 libevdev2 libfontconfig1 libgbm1 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa libgles2-mesa-dev libglew2.0 libglu1-mesa
libgraphite2-3 libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10
libjson-glib-1.0-0 libjson-glib-1.0-common libllvm4.0 libmtdev1 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0
libproxy1v5 libpthread-stubs0-dev libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
libqt5opengl5-dev libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5widgets5 libqt5xml5 librest-0.7-0
librsvg2-2 librsvg2-common libsensors4 libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtxc-dxtn-s2tc libwacom-bin
libwacom-common libwacom2 libwayland-bin libwayland-client0 libwayland-cursor0 libwayland-dev libwayland-egl1-mesa libwayland-server0
libx11-6 libx11-data libx11-dev libx11-doc libx11-xcb-dev libx11-xcb1 libxau-dev libxau6 libxcb-dri2-0 libxcb-dri2-0-dev
libxcb-dri3-0 libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present-dev
libxcb-present0 libxcb-randr0 libxcb-randr0-dev libxcb-render-util0 libxcb-render0 libxcb-render0-dev libxcb-shape0 libxcb-shape0-dev
libxcb-shm0 libxcb-sync-dev libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb-xfixes0-dev libxcb-xinerama0 libxcb-xkb1 libxcb1
libxcb1-dev libxcomposite1 libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfixes-dev
libxfixes3 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxrandr2 libxrender1 libxshmfence-dev libxshmfence1 libxtst6
libxxf86vm-dev libxxf86vm1 mesa-utils qt5-gtk-platformtheme qt5-qmake qtbase5-dev-tools qtchooser qttranslations5-l10n
shared-mime-info x11-common x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xkb-data xorg-sgml-doctools xtrans-dev
Suggested packages:
colord cups-common glew-utils gvfs qt5-image-formats-plugins qtwayland5 librsvg2-bin lm-sensors libxcb-doc libxext-doc firebird-dev
libgl1-mesa-dev libpq-dev unixodbc-dev
The following NEW packages will be installed:
adwaita-icon-theme at-spi2-core dconf-gsettings-backend dconf-service fontconfig fontconfig-config fonts-dejavu-core glib-networking
glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme libatk-bridge2.0-0
libatk1.0-0 libatk1.0-data libatspi2.0-0 libcairo-gobject2 libcairo2 libcolord2 libcroco3 libcups2 libdatrie1 libdconf1
libdouble-conversion1 libdrm-amdgpu1 libdrm-dev libdrm-etnaviv1 libdrm-exynos1 libdrm-freedreno1 libdrm-nouveau2 libdrm-omap1
libdrm-radeon1 libdrm-tegra0 libdrm2 libegl1-mesa libegl1-mesa-dev libepoxy0 libevdev2 libfontconfig1 libgbm1 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa libgles2-mesa-dev libglew2.0 libglu1-mesa
libgraphite2-3 libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10
libjson-glib-1.0-0 libjson-glib-1.0-common libllvm4.0 libmtdev1 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0
libproxy1v5 libpthread-stubs0-dev libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
libqt5opengl5-dev libqt5printsupport5 libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5widgets5 libqt5xml5 librest-0.7-0
librsvg2-2 librsvg2-common libsensors4 libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtxc-dxtn-s2tc libwacom-bin
libwacom-common libwacom2 libwayland-bin libwayland-client0 libwayland-cursor0 libwayland-dev libwayland-egl1-mesa libwayland-server0
libx11-6 libx11-data libx11-dev libx11-doc libx11-xcb-dev libx11-xcb1 libxau-dev libxau6 libxcb-dri2-0 libxcb-dri2-0-dev
libxcb-dri3-0 libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present-dev
libxcb-present0 libxcb-randr0 libxcb-randr0-dev libxcb-render-util0 libxcb-render0 libxcb-render0-dev libxcb-shape0 libxcb-shape0-dev
libxcb-shm0 libxcb-sync-dev libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb-xfixes0-dev libxcb-xinerama0 libxcb-xkb1 libxcb1
libxcb1-dev libxcomposite1 libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfixes-dev
libxfixes3 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxrandr2 libxrender1 libxshmfence-dev libxshmfence1 libxtst6
libxxf86vm-dev libxxf86vm1 mesa-utils qt5-gtk-platformtheme qt5-qmake qtbase5-dev qtbase5-dev-tools qtchooser qttranslations5-l10n
shared-mime-info x11-common x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev x11proto-xf86vidmode-dev xkb-data xorg-sgml-doctools xtrans-dev
0 upgraded, 180 newly installed, 0 to remove and 0 not upgraded.
Need to get 64.6 MB of archives.
After this operation, 321 MB of additional disk space will be used.
Do you want to continue? [Y/n]

`

[…]

Geeze all that posting and a minute later I find turtle_teleop which not only has the key but some joystick examples too. I’ll clone this … hmm it’s 5 years old.

Solved.
On github I found ros-teleop/teleop_twist_keyboard Which I built it as follows;

`

jeffa@bluemoon:~/git$ git clone https://github.com/ros-teleop/teleop_twist_keyboard.git
jeffa@bluemoon:~/git$ cd …/catkin_ws/src
jeffa@bluemoon:~/catkin_ws/src$ ln -s ~/git/teleop_twist_keyboard

jeffa@bluemoon:~/catkin_ws/src$ cd …
jeffa@bluemoon:~/catkin_ws$ catkin_make

jeffa@bluemoon:~/catkin_ws$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml
Add distro “groovy”
Add distro “hydro”
Add distro “indigo”
Add distro “jade”
Add distro “kinetic”
Add distro “lunar”
updated cache in /home/jeffa/.ros/rosdep/sources.cache
jeffa@bluemoon:~/catkin_ws$

`

This didn’t require all those extra packages I didn’t want to include on the BBBlue. And it has support for mice and joysticks. I invoked it on the 'blue to control the notebook. Invoking it was a bit more involved but a hint of things I want to learn. Invoke roscore and turtlesim on the notebook in the usual way. Don’t start the teleop_key. On the blue do;

jeffa@bluemoon:~/catkin_ws$ export ROS_MASTER_URI=http://lunar:11311 jeffa@bluemoon:~/catkin_ws$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py cmd_vel:=turtle1/cmd_vel

:slight_smile: Works on my machines!

jfjfj