Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named cffirmware #2

Closed
willgraham345 opened this issue Nov 10, 2022 · 1 comment
Closed

No module named cffirmware #2

willgraham345 opened this issue Nov 10, 2022 · 1 comment

Comments

@willgraham345
Copy link

I've been trying to use parts of your webots workspace for a new simulation, which will hopefully let us simulate crazyflies for a robotics study in my lab. I keep getting these issues when trying to run the simple_mapper within webots:

[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [webots-1]: process started with pid [170615]
[INFO] [driver-2]: process started with pid [170617]
[INFO] [robot_state_publisher-3]: process started with pid [170620]
[INFO] [simple_mapper-4]: process started with pid [170623]
[driver-2] Cannot connect to Webots instance, retrying in 0 second...
[robot_state_publisher-3] [INFO] [1668041269.763159731] [robot_state_publisher]: got segment
[driver-2] Cannot connect to Webots instance on socket "/tmp/webots-1234/ipc/Crazyflie/extern", retrying in 1 second...
[driver-2] Cannot connect to Webots instance on socket "/tmp/webots-1234/ipc/Crazyflie/extern", retrying in 2 seconds...
[robot_state_publisher-3] Link body had 0 children
[robot_state_publisher-3] Link camera had 0 children
[robot_state_publisher-3] Link gps had 0 children
[robot_state_publisher-3] Link gyro had 0 children
[robot_state_publisher-3] Link inertial unit had 0 children
[robot_state_publisher-3] Link range_back had 0 children
[robot_state_publisher-3] Link range_front had 0 children
[robot_state_publisher-3] Link range_left had 0 children
[robot_state_publisher-3] Link range_right had 0 children
[robot_state_publisher-3] Link solid_0 had 0 children
[robot_state_publisher-3] Link solid_1 had 0 children
[robot_state_publisher-3] Link solid_2 had 0 children
[robot_state_publisher-3] Link solid had 0 children
[robot_state_publisher-3] [INFO] [1668041275.781476478] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1668041275.781500427] [robot_state_publisher]: got segment body
[robot_state_publisher-3] [INFO] [1668041275.781504190] [robot_state_publisher]: got segment camera
[robot_state_publisher-3] [INFO] [1668041275.781507166] [robot_state_publisher]: got segment gps
[robot_state_publisher-3] [INFO] [1668041275.781510166] [robot_state_publisher]: got segment gyro
[robot_state_publisher-3] [INFO] [1668041275.781513081] [robot_state_publisher]: got segment inertial unit
[robot_state_publisher-3] [INFO] [1668041275.781516119] [robot_state_publisher]: got segment range_back
[robot_state_publisher-3] [INFO] [1668041275.781519107] [robot_state_publisher]: got segment range_front
[robot_state_publisher-3] [INFO] [1668041275.781522049] [robot_state_publisher]: got segment range_left
[robot_state_publisher-3] [INFO] [1668041275.781524948] [robot_state_publisher]: got segment range_right
[robot_state_publisher-3] [INFO] [1668041275.781527859] [robot_state_publisher]: got segment solid
[robot_state_publisher-3] [INFO] [1668041275.781530836] [robot_state_publisher]: got segment solid_0
[robot_state_publisher-3] [INFO] [1668041275.781533767] [robot_state_publisher]: got segment solid_1
[robot_state_publisher-3] [INFO] [1668041275.781536604] [robot_state_publisher]: got segment solid_2
[driver-2] Traceback (most recent call last):
[driver-2] File "/home/$USER/tests/install/crazyflie_ros2_simulation/lib/python3.8/site-packages/crazyflie_ros2_simulation/crazyflie_webots_driver.py", line 17, in
[driver-2] import cffirmware
[driver-2] ModuleNotFoundError: No module named 'cffirmware'
[driver-2] terminate called after throwing an instance of 'std::runtime_error'
[driver-2] what(): The crazyflie_ros2_simulation.crazyflie_webots_driver.CrazyflieWebotsDriver plugin cannot be found (C++ or Python).
[ERROR] [driver-2]: process has died [pid 170617, exit code -6, cmd '/opt/ros/galactic/lib/webots_ros2_driver/driver --ros-args --params-file /tmp/launch_params_9y19erxc'].

I'm somewhat new to ROS (and ROS2), but I loved your work and was hoping to see if I could make any progress with it. Thanks for the cool idea and code either way!!

@willgraham345
Copy link
Author

I should add that I am referencing the path to the crazyflie-firmware directory, which includes a cffirmware.py which should be the python bindings. If that doesn't help, I'm happy to provide any other information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant