Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIDconf.cfg: Permission denied #1

Open
GuiRitter opened this issue Jun 20, 2020 · 4 comments
Open

PIDconf.cfg: Permission denied #1

GuiRitter opened this issue Jun 20, 2020 · 4 comments

Comments

@GuiRitter
Copy link

Hi there.

In trying to test your project, I came across an error. I'm using Xubuntu 16.04 and ROS Lunar. I can't use a ROS lower than Kinetic because that would require (X)Ubuntu 14.04 and that only comes with cmake lower than 3.

Firstly, the README doesn't say where to place your project. Due to looking like a ROS project, I placed it in the default ROS path.

However, when I run make, I get this:

Scanning dependencies of target client_automoc
[  2%] Automatic moc, uic and rcc for target client
Generating ui_mainwindow.h
Generating moc_cartcontrollerwidget.cpp
Generating moc_cartpathabstract.cpp
Generating moc_cartpathgetter.cpp
Generating moc_cartpathsetter.cpp
Generating moc_mainwindow.cpp
Generating moc_rossubscriber.cpp
[  2%] Built target client_automoc
Scanning dependencies of target _CartControlPlugin_generate_messages_check_deps_VelocityWheels
[  2%] Built target _CartControlPlugin_generate_messages_check_deps_VelocityWheels
Scanning dependencies of target _CartControlPlugin_generate_messages_check_deps_PathMsg
[  2%] Built target _CartControlPlugin_generate_messages_check_deps_PathMsg
Scanning dependencies of target geometry_msgs_generate_messages_nodejs
[  2%] Built target geometry_msgs_generate_messages_nodejs
Scanning dependencies of target _CartControlPlugin_generate_messages_check_deps_VelocityCart
[  2%] Built target _CartControlPlugin_generate_messages_check_deps_VelocityCart
Scanning dependencies of target _CartControlPlugin_generate_messages_check_deps_PathSrv
[  2%] Built target _CartControlPlugin_generate_messages_check_deps_PathSrv
Scanning dependencies of target _CartControlPlugin_generate_messages_check_deps_Position
[  2%] Built target _CartControlPlugin_generate_messages_check_deps_Position
Scanning dependencies of target CartControlPlugin_generate_messages_nodejs
[  4%] Generating Javascript code from CartControlPlugin/PathMsg.msg
[  6%] Generating Javascript code from CartControlPlugin/VelocityCart.msg
[  8%] Generating Javascript code from CartControlPlugin/VelocityWheels.msg
[ 10%] Generating Javascript code from CartControlPlugin/Position.msg
[ 12%] Generating Javascript code from CartControlPlugin/PathSrv.srv
[ 12%] Built target CartControlPlugin_generate_messages_nodejs
Scanning dependencies of target geometry_msgs_generate_messages_py
[ 12%] Built target geometry_msgs_generate_messages_py
Scanning dependencies of target CartControlPlugin_generate_messages_py
[ 14%] Generating Python from MSG CartControlPlugin/PathMsg
[ 17%] Generating Python from MSG CartControlPlugin/VelocityCart
[ 19%] Generating Python from MSG CartControlPlugin/VelocityWheels
[ 21%] Generating Python from MSG CartControlPlugin/Position
[ 23%] Generating Python code from SRV CartControlPlugin/PathSrv
[ 25%] Generating Python msg __init__.py for CartControlPlugin
[ 27%] Generating Python srv __init__.py for CartControlPlugin
[ 27%] Built target CartControlPlugin_generate_messages_py
Scanning dependencies of target geometry_msgs_generate_messages_cpp
[ 27%] Built target geometry_msgs_generate_messages_cpp
Scanning dependencies of target CartControlPlugin_generate_messages_cpp
[ 29%] Generating C++ code from CartControlPlugin/PathMsg.msg
[ 31%] Generating C++ code from CartControlPlugin/VelocityCart.msg
[ 34%] Generating C++ code from CartControlPlugin/VelocityWheels.msg
[ 36%] Generating C++ code from CartControlPlugin/Position.msg
[ 38%] Generating C++ code from CartControlPlugin/PathSrv.srv
[ 38%] Built target CartControlPlugin_generate_messages_cpp
Scanning dependencies of target geometry_msgs_generate_messages_eus
[ 38%] Built target geometry_msgs_generate_messages_eus
Scanning dependencies of target CartControlPlugin_generate_messages_eus
[ 40%] Generating EusLisp code from CartControlPlugin/PathMsg.msg
[ 42%] Generating EusLisp code from CartControlPlugin/VelocityCart.msg
[ 44%] Generating EusLisp code from CartControlPlugin/VelocityWheels.msg
[ 46%] Generating EusLisp code from CartControlPlugin/Position.msg
[ 48%] Generating EusLisp code from CartControlPlugin/PathSrv.srv
[ 51%] Generating EusLisp manifest code for CartControlPlugin
[WARNING] CartControlPlugin is not found in workspace
[ 51%] Built target CartControlPlugin_generate_messages_eus
Scanning dependencies of target geometry_msgs_generate_messages_lisp
[ 51%] Built target geometry_msgs_generate_messages_lisp
Scanning dependencies of target CartControlPlugin_generate_messages_lisp
[ 53%] Generating Lisp code from CartControlPlugin/PathMsg.msg
[ 55%] Generating Lisp code from CartControlPlugin/VelocityCart.msg
[ 57%] Generating Lisp code from CartControlPlugin/VelocityWheels.msg
[ 59%] Generating Lisp code from CartControlPlugin/Position.msg
[ 61%] Generating Lisp code from CartControlPlugin/PathSrv.srv
[ 61%] Built target CartControlPlugin_generate_messages_lisp
Scanning dependencies of target CartControlPlugin_generate_messages
[ 61%] Built target CartControlPlugin_generate_messages
Scanning dependencies of target client
[ 63%] Building CXX object CMakeFiles/client.dir/client/main.cpp.o
[ 65%] Building CXX object CMakeFiles/client.dir/client/mainwindow.cpp.o
[ 68%] Building CXX object CMakeFiles/client.dir/client/cartcontrollerwidget.cpp.o
[ 70%] Building CXX object CMakeFiles/client.dir/client/rospublisher.cpp.o
[ 72%] Building CXX object CMakeFiles/client.dir/client/cartpathsetter.cpp.o
[ 74%] Building CXX object CMakeFiles/client.dir/client/cartpathabstract.cpp.o
[ 76%] Building CXX object CMakeFiles/client.dir/client/cartpathgetter.cpp.o
[ 78%] Building CXX object CMakeFiles/client.dir/client/rossubscriber.cpp.o
[ 80%] Building CXX object CMakeFiles/client.dir/kinematic/cartkinematic.cpp.o
[ 82%] Building CXX object CMakeFiles/client.dir/client_automoc.cpp.o
[ 85%] Building CXX object CMakeFiles/client.dir/CMakeFiles/client.dir/qrc_resources.cpp.o
[ 87%] Linking CXX executable devel/lib/CartControlPlugin/client
[ 87%] Built target client
Scanning dependencies of target main_automoc
[ 89%] Automatic moc, uic and rcc for target main
[ 89%] Built target main_automoc
Scanning dependencies of target CartControlPlugin_gencfg
[ 91%] Generating dynamic reconfigure files from cfg/PIDconf.cfg: /home/guir/catkin_ws_lunar/src/plugin/build/devel/include/CartControlPlugin/PIDconfConfig.h /home/guir/catkin_ws_lunar/src/plugin/build/devel/lib/python2.7/dist-packages/CartControlPlugin/cfg/PIDconfConfig.py
/home/guir/catkin_ws_lunar/src/plugin/build/setup_custom_pythonpath.sh: 5: exec: /home/guir/catkin_ws_lunar/src/plugin/cfg/PIDconf.cfg: Permission denied
CMakeFiles/CartControlPlugin_gencfg.dir/build.make:63: recipe for target 'devel/include/CartControlPlugin/PIDconfConfig.h' failed
make[2]: *** [devel/include/CartControlPlugin/PIDconfConfig.h] Error 126
CMakeFiles/Makefile2:944: recipe for target 'CMakeFiles/CartControlPlugin_gencfg.dir/all' failed
make[1]: *** [CMakeFiles/CartControlPlugin_gencfg.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Imagining it was a permission issue, I tried with sudo make:

[  2%] Automatic moc, uic and rcc for target client
[  2%] Built target client_automoc
Traceback (most recent call last):
  File "/opt/ros/lunar/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py", line 41, in <module>
    from genmsg import EXT_MSG, EXT_SRV, MsgContext
ImportError: No module named genmsg
CMakeFiles/_CartControlPlugin_generate_messages_check_deps_VelocityWheels.dir/build.make:57: recipe for target 'CMakeFiles/_CartControlPlugin_generate_messages_check_deps_VelocityWheels' failed
make[2]: *** [CMakeFiles/_CartControlPlugin_generate_messages_check_deps_VelocityWheels] Error 1
CMakeFiles/Makefile2:1650: recipe for target 'CMakeFiles/_CartControlPlugin_generate_messages_check_deps_VelocityWheels.dir/all' failed
make[1]: *** [CMakeFiles/_CartControlPlugin_generate_messages_check_deps_VelocityWheels.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Thanks in advance.

@dupeljan
Copy link
Owner

Hi, GuiRitter!
Really sorry for such a delay, I had no notifications about that!
I'll try to solve you problem in as soon as possible. Besides I moved in another town and left my work station there

@dupeljan
Copy link
Owner

Fist question: where do I need to the put project?
You can put it anywhere to build it. All you need is just change a path to libmain.so in your code like this and after a successful robot launch start control app called client. To launch app just type ./client in ./plugin/build/devel/lib/CartControlPlugin directory

@dupeljan
Copy link
Owner

Seems you have a problem due to unzipping project. I found similar topic.
Try this: chmod +x /home/guir/catkin_ws_lunar/src/plugin/cfg/PIDconf.cfg

I guess when you used sudo, you execute Cmake as super user, which don't have ros libraries in their path.

@GuiRitter
Copy link
Author

Hi, GuiRitter!
Really sorry for such a delay, I had no notifications about that!
I'll try to solve you problem in as soon as possible. Besides I moved in another town and left my work station there

No problem! Next time I'm available I'll try again, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants