How to set up parameters in catkin and how to use qtcreator?

asked 2018-05-30 20:28:07 -0600

Pujie gravatar image

updated 2018-05-30 20:30:08 -0600

jayess gravatar image

Q1: I just installed qt-creator and I sourced ROS setup.sh and opened the qt-creator in terminal. However, the catkin_make does work. I hope to initialize the catkin, but I don't know how to initialize it.

Q2: I don't know why the catkin_make doesn't work. PS: Sorry for I don't know how to compile the following part.

parallels@ubuntu:~$ cd catkin_ws
parallels@ubuntu:~/catkin_ws$ pwd
/home/parallels/catkin_ws
parallels@ubuntu:~/catkin_ws$ catkin_make
Base path: /home/parallels/catkin_ws
Source space: /home/parallels/catkin_ws/src
Build space: /home/parallels/catkin_ws/build
Devel space: /home/parallels/catkin_ws/devel
Install space: /home/parallels/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/parallels/catkin_ws/build"
####
CMake Error at CMakeLists.txt:59 (message):
  find_package(catkin) failed.  catkin was neither found in the workspace nor
  in the CMAKE_PREFIX_PATH.  One reason may be that no ROS setup.sh was
  sourced before.


-- Configuring incomplete, errors occurred!
See also "/home/parallels/catkin_ws/build/CMakeFiles/CMakeOutput.log".
Makefile:1046: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

parallels@ubuntu:~/catkin_ws$ printenv
XDG_VTNR=7
XDG_SESSION_ID=c3
CLUTTER_IM_MODULE=xim
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/parallels
GPG_AGENT_INFO=/home/parallels/.gnupg/S.gpg-agent:0:1
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=4205
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1


ROS_MASTER_URI=http://localhost:11311
WINDOWID=60817418
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1906
GNOME_KEYRING_CONTROL=
ROS_VERSION=1
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=parallels
LD_LIBRARY_PATH=/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
QT_ACCESSIBILITY=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
PATH=/opt/ros/kinetic/bin:/home/parallels/bin:/home/parallels/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DESKTOP_SESSION=ubuntu
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
XDG_SESSION_TYPE=x11
PWD=/home/parallels/catkin_ws
JOB=gnome-session
XMODIFIERS=@im=ibus
ROS_HOSTNAME=localhost
GNOME_KEYRING_PID=
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
IM_CONFIG_PHASE=1
COMPIZ_CONFIG_PROFILE=ubuntu
ROSLISP_PACKAGE_DIRECTORIES=
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
HOME=/home/parallels
XDG_SEAT=seat0
SHLVL=1
ROS_DISTRO=kinetic
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages
UPSTART_EVENTS=started starting
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=parallels
QT4_IM_MODULE=xim
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ZRBv6qY6Wh
PKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=Unity
UPSTART_JOB=unity-settings-daemon
CMAKE_PREFIX_PATH=/opt/ros/kinetic
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
XAUTHORITY=/home/parallels/.Xauthority
OLDPWD=/home/parallels
_=/usr/bin/printenv
edit retag flag offensive close merge delete