elephantrobotics / mycobot_ros

A ros package for myCobot.
BSD 3-Clause "New" or "Revised" License
166 stars 83 forks source link

mycobotpi catkin_make error #43

Closed yo4hi6o closed 2 years ago

yo4hi6o commented 3 years ago

Hi If you change the ros_catkin_ws originally in mycobotpi and run the catkin_make, the following error occurs. Is there a way to solve this?

pi@raspberrypi:~/ros_catkin_ws $ catkin_make
Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/devel/bin/catkin_make", line 7, in <module>
    with open(python_script, 'r') as fh:
IOError: [Errno 2] No such file or directory: '/home/pi/ros_catkin_ws/src/catkin/bin/catkin_make'
Eheech commented 3 years ago

What changes did you make to ros_catkin_ws ? Maybe you can upload the review process , let us check .

Eheech commented 3 years ago

If you follow the tutorial in our gitbook , will it return this error ?

yo4hi6o commented 3 years ago

I just changed slider_control.py from the issue(#36 ) to / dev / ttyAMA0. Also, the same error occurred in catkin_make when creating a new catkin_ws described in the README of micobotpi. Currently, I don't have this machine at hand, so I can contact you for details on Monday.

Eheech commented 3 years ago

Have you tried ' catkin_init_workspace ' , bafore you used ' catkin_make ' ?

yo4hi6o commented 3 years ago

Have you tried ' catkin_init_workspace ' , bafore you used ' catkin_make ' ?

OK, I will try it once.

Eheech commented 3 years ago

In this tutorial : https://www.elephantrobotics.com/docs/myCobot-en/3-development/4-ros&moveit/2-install_ros_package.html before ' Installation ' you can use these commands : image and then : image

yo4hi6o commented 3 years ago

OK, I don't have the actual machine right now, so I will try it at the beginning of the week and report it. Thank you

Eheech commented 3 years ago

You're welcome, hope i can help you .

yo4hi6o commented 3 years ago

Hi A similar error occurs, and after purchase, no changes have been made at the system location. I've done a lot of WS creation in regular ROS and MyCobot, but do I need any special initial setup for MyCobotpi?

pi@raspberrypi:~ $ mkdir -p ~/catkin_ws/src
pi@raspberrypi:~ $ cd ~/catkin_ws/src
pi@raspberrypi:~/catkin_ws/src $ catkin_init_workspace
Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/devel/bin/catkin_init_workspace", line 7, in <module>
    with open(python_script, 'r') as fh:
IOError: [Errno 2] No such file or directory: '/home/pi/ros_catkin_ws/src/catkin/bin/catkin_init_workspace'
pi@raspberrypi:~/catkin_ws/src $ 
Eheech commented 3 years ago

Have you tired to use ' catkin_init_workspace ' in derectory ' ros_catkin_ws ' ?

yo4hi6o commented 3 years ago

Hi, It is m same in ros_catkin_ws. thank you

pi@raspberrypi:~ $ cd ros_catkin_ws
pi@raspberrypi:~/ros_catkin_ws $ catkin_init_workspace
Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/devel/bin/catkin_init_workspace", line 7, in <module>
    with open(python_script, 'r') as fh:
IOError: [Errno 2] No such file or directory: '/home/pi/ros_catkin_ws/src/catkin/bin/catkin_init_workspace'
pi@raspberrypi:~/ros_catkin_ws $ 
Eheech commented 3 years ago

Which Ros do you install in Raspberry ? Noetic or Kinetic ? If you are not sure , you can use command ' roscore ' to check .

yo4hi6o commented 3 years ago

It is kinetic that was originally installed.

Eheech commented 3 years ago

Would you mind offer a screenshot of your system ?

Eheech commented 3 years ago

Please check ~/.bashrc and ~/.zshrc , make sure you have added ros path .

yo4hi6o commented 3 years ago

2021-11-08-154352_1280x720_scrot

Eheech commented 3 years ago

Please use these two commands ' cat ~/.bashrc | grep 'ros' ' and ' cat ~/.zshrc ' and send screenshot to us , we wanna find out what the problem it is , thank you very much !!!!

yo4hi6o commented 3 years ago

PATH is in .bash. Why do I get such an error I'm curious.

2021-11-08-163412_1280x720_scrot

Eheech commented 3 years ago

Please try this way , thank you We are also puzzled by this question , cause we have tried all system we used for raspberry , didn't return this error ..... image

yo4hi6o commented 3 years ago

OK, thank you. For a business trip until the day after tomorrow I will try it the day after tomorrow. thank you!

yo4hi6o commented 2 years ago

I was able to resolve the error by changing this path. Thank you very much.

Eheech commented 2 years ago

You're welcome, we're delighted to help you.