aerostack2 / project_crazyflie

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error while trying it in docker (Or on pc, which I haven't tested yet) #9

Closed aarsht7 closed 6 months ago

aarsht7 commented 6 months ago

Hello, I followed the tutorial from the documentation. Installed all the requirements mentioned on the Binary install ros-humble-aerostack2 ros-humble-as2-gazebo-assets ros-humble-as2-platform-gazebo

When I tried to launch the simulation on the gazebo using ./launch_as2.bash -s -t, it launched the simulator but not the keyboard teleop window. So I tried ./launch_as2.bash -s and tried to launch teleop in a separate window using the following command ros2 launch as2_keyboard_teleoperation as2_keyboard_teleoperation_launch.py namespace:=cf0

The first error that I faced was with PySimpleGUI, which I solved by installing it python3 -m pip install PySimpleGUI

The next error I am getting does not seem trivial to solve

[as2_keyboard_teleoperation-1] Traceback (most recent call last):
[as2_keyboard_teleoperation-1]   File "/opt/ros/humble/share/as2_keyboard_teleoperation/keyboard_teleoperation.py", line 42, in <module>
[as2_keyboard_teleoperation-1]     from as2_python_api.drone_interface_teleop import DroneInterfaceTeleop as DroneInterface
[as2_keyboard_teleoperation-1]   File "/opt/ros/humble/lib/python3.10/site-packages/as2_python_api/drone_interface_teleop.py", line 37, in <module>
[as2_keyboard_teleoperation-1]     from as2_python_api.drone_interface import DroneInterface
[as2_keyboard_teleoperation-1]   File "/opt/ros/humble/lib/python3.10/site-packages/as2_python_api/drone_interface.py", line 37, in <module>
from as2_python_api.modules.takeoff_module import TakeoffModule
[as2_keyboard_teleoperation-1] ModuleNotFoundError: No module named 'as2_python_api.modules'
[ERROR] [as2_keyboard_teleoperation-1]: process has died [pid 26187, exit code 1, cmd 'python3 /opt/ros/humble/share/as2_keyboard_teleoperation/keyboard_teleoperation.py cf0 false false'].

It seems I am missing some package, but don't know which one. I appreciate your help.

pariaspe commented 6 months ago

Hi @aarsht7 , Thanks for posting your issue. It was tracked and fixed in https://github.com/aerostack2/aerostack2/pull/419. It is not included in latest version available (v1.0.8) but it will be in next version. As a temporary solution you could install aerostack2 by source.

About PySimpleGUI it should be somewhere in the documentation, you solved it correctly.

I'm closing this issue since it would be fixed in next sync, thanks again!