Everything seems ok until I run rosrun motion_planning motion_planning.py. The error is as follows:
(tamp) xj@xj:~$ rosrun motion_planning motion_planning.py
Traceback (most recent call last):
File "/home/xj/catkin_ws/src/motion_planning/scripts/motion_planning.py", line 9, in
from controller import ArmController
File "/home/xj/catkin_ws/src/motion_planning/scripts/controller.py", line 8, in
from pyquaternion import Quaternion
ModuleNotFoundError: No module named 'pyquaternion
Then I install the unfound package, but actually it's already installed:
I also test it in python, this package can be imported.
(tamp) xj@xj:~$ python
Python 3.9.19 (main, Mar 21 2024, 17:11:28)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import pyquaternion
from pyquaternion import Quaternion
Now I'm confused about why this happen and how to solve it.
Thank you very much.
Everything seems ok until I run rosrun motion_planning motion_planning.py. The error is as follows:
Then I install the unfound package, but actually it's already installed:
I also test it in python, this package can be imported.
Now I'm confused about why this happen and how to solve it. Thank you very much.