Problem with Boost and the pid package
Hi guys,
I am trying to get the pid package to work on my Raspberry Pi 3+.
I pretty much followed the pid kinetic installation steps, but when I run catkin_make I get problems with boost when building controller.cpp.
The pid package: http://wiki.ros.org/pid
The error message: // Thanks to @Karl Damkjær Hansen's answer down below, the program now successfully builds.
A new problem arose when trying to run the example: roslaunch pid servo_sim.launch.
process[rosout-1]: started with pid [10933]
started core service [/rosout]
process[left_wheel_pid-2]: started with pid [10944]
process[servo_sim_node-3]: started with pid [10951]
process[setpoint_node-4]: started with pid [10957]
process[rqt_plot-5]: started with pid [10966]
[ INFO] [1589381997.947059513]: Starting setpoint publisher
process[rqt_reconfigure-6]: started with pid [10983]
Traceback (most recent call last):
File "/home/pi/catkin_ws_pid/src/rqt_plot/scripts/rqt_plot", line 5, in <module>
from rqt_gui.main import Main
ImportError: No module named rqt_gui.main
process[rqt_robot_monitor-7]: started with pid [10988]
[ INFO] [1589381998.042929795]: Starting simulation of a second-order plant.
Traceback (most recent call last):
File "/home/pi/catkin_ws_pid/src/rqt_reconfigure/scripts/rqt_reconfigure", line 5, in <module>
from rqt_gui.main import Main
ImportError: No module named rqt_gui.main
[rqt_plot-5] process has died [pid 10966, exit code 1, cmd /home/pi/catkin_ws_pid/src/rqt_plot/scripts/rqt_plot /control_effort/data /state/data /setpoint/data __name:=rqt_plot __log:=/home/pi/.ros/log/65756ab4-952a-11ea-bf8b-c83ea70143e3/rqt_plot-5.log].
log file: /home/pi/.ros/log/65756ab4-952a-11ea-bf8b-c83ea70143e3/rqt_plot-5*.log
[rqt_reconfigure-6] process has died [pid 10983, exit code 1, cmd /home/pi/catkin_ws_pid/src/rqt_reconfigure/scripts/rqt_reconfigure __name:=rqt_reconfigure __log:=/home/pi/.ros/log/65756ab4-952a-11ea-bf8b-c83ea70143e3/rqt_reconfigure-6.log].
log file: /home/pi/.ros/log/65756ab4-952a-11ea-bf8b-c83ea70143e3/rqt_reconfigure-6*.log
Traceback (most recent call last):
File "/home/pi/catkin_ws_pid/src/rqt_robot_monitor/scripts/rqt_robot_monitor", line 5, in <module>
from rqt_gui.main import Main
ImportError: No module named rqt_gui.main
If I understand this correctly, this should be a python module. When I launch python and try to import the module I get
from rqt_gui.main import Main
>>> from rqt_gui.main import Main
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named rqt_gui.main
Yet I rqt should be installed.
Has anyone run into similar problems?
Asked by Isth on 2020-05-13 02:54:34 UTC
Answers
It seem like Andrew Zelenak broke his own package with commit 2cc82dd .
I don't actually use the pid package, but looked through the code and thought it was strange that boost::any was not included as a header. I seems he (unintentionally) removed it. I suggest that you file an issue in his bitbucket. Temporarily, you can also git checkout the latest tag, that is probably more stable (currently 0.0.27)
Asked by Karl Damkjær Hansen on 2020-05-13 05:25:19 UTC
Comments
Thanks so much for the answer, I had identified the lack of the header files as well, and attempted to include them myself. That only brought new problems so I decided to use 0.0.27.
With 0.0.27 I managed to successfully build, but then it brought about new problems when attempting to run the servo_sim.launch example. Updated main post
Asked by Isth on 2020-05-13 10:19:47 UTC
Comments
I'm sorry to have to do this for something so seemingly unimportant, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing
ctrl+k
(or clicking the Preformatted Text button (the one with101010
on it)).You don't need to post a new question, just edit your curent one. You can use the
edit
button/link for this.After you replace the screenshot with the error message itself, we can re-open your question.
Asked by gvdhoorn on 2020-05-13 03:13:49 UTC
I am sorry, I saw the ".. Also include your screenshots or movies to demonstrate the problem" and missed the error message just below, my bad. I think it should be formatted correctly now though :-)
Asked by Isth on 2020-05-13 03:42:16 UTC