编译安装
sudo apt-get -y install qtbase5-dev libqt5svg5-dev qtdeclarative5-dev qtmultimedia5-dev libqt5multimedia5-plugins
mkdir -p ws_plotjuggler/src
cd ~/ws_plotjuggler/src
git clone https://github.com/PlotJuggler/plotjuggler_msgs.git
git clone https://github.com/facontidavide/PlotJuggler.git #(必有,否则编译报错)
git clone https://github.com/PlotJuggler/plotjuggler-ros-plugins.git
cd..
catkin_make#编译
#启动可做shell脚本
#!/bin/bash
# for Plotjuggler startup
cd /home/melodic/ws_plotjuggler
sleep 2
source devel/setup.bash
sleep 2
roslaunch plotjuggler_ros plotjuggler.launch
sleep 2
echo "Plotjuggler startup successfully"
报错
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5WebSockets"
with any of the following names:
Qt5WebSocketsConfig.cmake
qt5websockets-config.cmake
解决:
sudo apt install libqt5websockets5-dev
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5X11Extras" with
any of the following names:
Qt5X11ExtrasConfig.cmake
qt5x11extras-config.cmake
解决
sudo apt install libqt5x11extras5-dev