Ask Your Question
0

Problem with Boost and the pid package

asked 2020-05-13 02:55:31 -0500

Isth gravatar image

updated 2020-05-13 10:26:54 -0500

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?

edit retag flag offensive close merge delete

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 with 101010 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.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-13 03:13:49 -0500 )edit

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 :-)

Isth gravatar image Isth  ( 2020-05-13 03:42:16 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-05-13 05:25:19 -0500

Karl Damkjær Hansen gravatar image

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)

edit flag offensive delete link more

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

Isth gravatar image Isth  ( 2020-05-13 10:19:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-05-13 02:54:34 -0500

Seen: 92 times

Last updated: May 13 '20