ros-robotics 原文存档
ubuntu20.04 noetic安装ROS stdr_simulator
官方版本
链接: https://github.com/stdr-simulator-ros-pkg/stdr_simulator.
此版本必须在Qt 4.X的环境中安装
如果在已经部署Qt5环境的情况下,再安装libqt4-dev可能存在Qt版本切换的问题
第三方Qt5版本
链接: https://github.com/arne48/stdr_simulator.
注意需要选择Noetic分支
cd your_ros_ws
mkdir src
cd src
git clone https://github.com/arne48/stdr_simulator
cd …
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO
catkin_make
上面的是对的,已经试验成功。
3下面的是我试验失败的方法。
1,
https://github.com/wsnewman/learning_ros_setup_scripts
First install qt4 and make it default
`sudo add-apt-repository ppa:rock-core/qt4 sudo apt-get update sudo apt-get install libqtcore4 qt4-qmake libqt4-dev export QT_SELECT=4`
make sure it is the active environment by running qtchooser -print-env then install the map_server sudo apt install ros-noetic-map-server Then clone and compile the stdr_simulator package
`cd ~/ros_ws/src git clone https://github.com/stdr-simulator-ros-pkg/stdr_simulator.git cd .. rosdep install --from-paths src --ignore-src --rosdistro noetic catkin_make -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4`
按照上面这个把qt4安装好后,编译,会提示错误
QtCore: No such file or directory