ROBOTIS-GIT / turtlebot3_autorace

Autonomous Driving with TurtleBot3
http://turtlebot3.robotis.com
Apache License 2.0
88 stars 50 forks source link

Unable to run 13.2.5. Tutorials: 5. Missions #37

Closed ARLunan closed 5 years ago

ARLunan commented 5 years ago

Refereing to my previous post #36 on this forum, "Unable to run Camera Imaging Calibration (Item 13.2.3.1 Tutorials: 4.1), regardless of the error I attempted to run the 5.1 Lane Deection, with the following transcript from the Remote PC (herschel), indication an issue with the cv2 code, PyCObject_Type? Please note that "roscore" executes without error, "rosnode list" shows /rosout.

turtlebot@herschel:~$ export AUTO_DT_CALIB=calibration turtlebot@herschel:~$ roslaunch turtlebot3_autorace_detect turtlebot3_autorace_detect_lane.launch ... logging to /home/turtlebot/.ros/log/4b706308-c078-11e9-acd8-60d819ca036d/roslaunch-herschel-25942.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://herschel.local:44081/

SUMMARY

PARAMETERS

NODES / detect_lane (turtlebot3_autorace_detect/detect_lane)

ROS_MASTER_URI=http://herschel.local:11311

process[detect_lane-1]: started with pid [25959] Traceback (most recent call last): File "/home/turtlebot/catkin_ws/src/turtlebot3_autorace/turtlebot3_autorace_detect/nodes/detect_lane", line 24, in import cv2 ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type [detect_lane-1] process has died [pid 25959, exit code 1, cmd /home/turtlebot/catkin_ws/src/turtlebot3_autorace/turtlebot3_autorace_detect/nodes/detect_lane /detect/image_input:=/camera/image_projected_compensated /detect/image_input/compressed:=/camera/image_projected_compensated/compressed /detect/image_output:=/detect/image_lane /detect/image_output/compressed:=/detect/image_lane/compressed /detect/image_output_sub1:=/detect/image_white_lane_marker /detect/image_output_sub1/compressed:=/detect/image_white_lane_marker/compressed /detect/image_output_sub2:=/detect/image_yellow_lane_marker /detect/image_output_sub2/compressed:=/detect/image_yellow_lane_marker/compressed __name:=detect_lane __log:=/home/turtlebot/.ros/log/4b706308-c078-11e9-acd8-60d819ca036d/detect_lane-1.log]. log file: /home/turtlebot/.ros/log/4b706308-c078-11e9-acd8-60d819ca036d/detect_lane-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done turtlebot@herschel:~/

JaehyunShim commented 5 years ago

@red24dog

As far as what this issue thread says, it seems like the problem is occurring because of python. Reinstall python, try it again and let us know the result. Also, before leaving a question here, it is preferable to google it by yourself (for example, you can just simply search 'undefined symbol: PyCObject_Type') and learn through it.

Regards, Ryan

ARLunan commented 5 years ago

Thanks, and I ask for clarification: Reinstall which python, 2.7 or 3.6 or both?

Do you have a recommended url for instructions to to this?

Ross Lunan Sent from my iPhone

On Aug 19, 2019, at 8:28 PM, Ryan Jaehyun Shim notifications@github.com wrote:

@red24dog

As far as what this issue thread says, it seems like the problem is occurring because of python. Reinstall python, try it again and let us know the result.

Regards, Ryan

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ARLunan commented 5 years ago

Solved as described in my previous Comment posting #36. Removed anaconda3 and restore .bashrc.