gtfactslab / CrazySim

A Crazyflie simulator for testing CFLib Python code, ROS 2 nodes through Crazyswarm2, custom crazyflie-firmware modules, or perform a flight demo on the crazyflie-python-client.
GNU General Public License v3.0
72 stars 15 forks source link

fatal error: lapack.h: No such file or directory #4

Closed khunglong207 closed 7 months ago

khunglong207 commented 7 months ago

Screenshot from 2024-04-18 14-24-23

i am having this problem can you help i tried the command line "sudo apt-get install liblapack-dev". But it still doesn't run

khunglong207 commented 7 months ago

I fixed it but when I go to connect I can't scan for udp, do you have any ideas? image

llanesc commented 7 months ago

I added a SITL checkbox to switch the address box to an IP. You will need to click on the SITL checkbox before you can scan.

khunglong207 commented 7 months ago

@llanesc I'm new so can you help me? I don't know that command

llanesc commented 7 months ago

Right next to the address box in the client is a checkbox that says SITL. Click on that when you want to use the simulator.

khunglong207 commented 7 months ago

@llanesc yes i clicked but not find udp

khunglong207 commented 7 months ago

image @llanesc

llanesc commented 7 months ago

You might have the official cflib installed. Can you try uninstalling cflib with pip uninstall cflib and then install it from the CrazySim folder with pip install -e . Also can you try running a demo with CFLib to make sure it's installed. Just make sure to change the URI in the script to "udp://0.0.0.0:19850".

llanesc commented 7 months ago

Also when you click on SITL checkbox you are clicking on scan and then connect right? If you scan and don't see the udp interface show up you probably don't have my modified CFLib installed.

khunglong207 commented 7 months ago

theshy@theshy7119:~/CrazySim/crazyflie-lib-python$ pip install -e

Usage:
pip install [options] [package-index-options] ... pip install [options] -r [package-index-options] ... pip install [options] [-e] ... pip install [options] [-e] ... pip install [options] <archive url/path> ...

-e option requires 1 argument @llanesc I try but command show it i am a new student use ros drone for project so hope you try hepl me

llanesc commented 7 months ago

Don't forget the dot at the end. "pip install -e ."

khunglong207 commented 7 months ago

can you give me running a demo with CFLib

llanesc commented 7 months ago

go to the file: CrazySim/crazyflie-lib-python/examples/autonomy/motion_commander_demo.py and change the URI to uri_helper.uri_from_env(default='udp://0.0.0.0:19850'). then just run the script with Gazebo open.

khunglong207 commented 7 months ago

@llanesc oh my god thank you verry much i try it so much but when he answer me i do it. you r god. I am a student aerospace in Hanoi university of science and technology In VỉetNam. i have many question for your project but now In Hanoi is 1pm , it so late, so i will ask you for my question on tomorrow. Can i ask you from email, facebook, ins or ms team? Once again I thank you, you are very enthusiastic in supporting me

llanesc commented 7 months ago

Sure, just email me if you have anymore questions. christian.llanes@gatech.edu

GusBon commented 7 months ago

Screenshot from 2024-04-18 14-24-23

i am having this problem can you help i tried the command line "sudo apt-get install liblapack-dev". But it still doesn't run

Hi, Sorry to talk on this closed discussion, but I am facing the same issue with the lapack.h not found. Could you explain how do you solve this issue @khunglong207 ? (or anybody that knows how to fix it)

llanesc commented 7 months ago

@GusBon You need to install LAPACK. Try doing this command:

sudo apt-get install liblapack-dev
GusBon commented 7 months ago

Yup I have done it, as the dependencies of the section said to do, the package manager said that I already had liblapack-dev package. (I am running Ubuntu22.04). But when building with make I got this error at the 32% of the build

llanesc commented 7 months ago

@GusBon could you try this one as well? There's an extra e after pack.

sudo apt-get install liblapacke-dev
GusBon commented 7 months ago

Hi, It worked thanks ! After some researches liblapack is a fortran library for linear algebra. the package "liblapack-dev" contains a static verions of the library, and the package "liblapacke-dev" contains a static version of the library and development files for the C language for lapack. I am now able to launch gazebo with a single crazyflie and 8 crazyflies in a square shape. Thank you !