Comments (5)
The Python package installed using pip install
is limited to the platforms supported by GitHub Actions Runner. If your platform is not supported then you can run setup.py to build and install the package on your target platform.
from fusion.
Was able to build and use the package locally. Adding the steps I needed to follow below incase anyone else ever runs into this.
Ran into errors using numpy from pip on raspberry pi.
Thats fixable following the steps here https://numpy.org/devdocs/user/troubleshooting-importerror.html
-
pip3 uninstall numpy # remove previously installed version
-
sudo apt install python3-numpy
-
Clone repo
-
cd Fusion/Python/Python-C-API
-
python3 setup.py
-
cd dist
-
unzip imufusion-1.0.1-py3.9-linux-armv7l.egg
-
cp imufusion.cpython-39-arm-linux-gnueabihf.so and imufusion.py to project libraries
-
import numpy, imufusion
And now its working great. Thanks for the info.
from fusion.
The Python package installed using
pip install
is limited to the platforms supported by GitHub Actions Runner. If your platform is not supported then you can run setup.py to build and install the package on your target platform.
Hello,
I had downloaded setup.py and placed it in Fusion-main directory, as I run it I get the following message:
`running install
running bdist_egg
running egg_info
creating imufusion.egg-info
writing imufusion.egg-info/PKG-INFO
writing dependency_links to imufusion.egg-info/dependency_links.txt
writing top-level names to imufusion.egg-info/top_level.txt
writing manifest file 'imufusion.egg-info/SOURCES.txt'
reading manifest file 'imufusion.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'imufusion.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_ext
building 'imufusion' extension
creating build
creating build/temp.linux-armv7l-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/pi/.local/lib/python3.10/site-packages/numpy/core/include -I/usr/local/include/python3.10 -c ../../Fusion/FusionAhrs.c -o build/temp.linux-armv7l-3.10/../../Fusion/FusionAhrs.o
gcc: error: ../../Fusion/FusionAhrs.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
(program exited with code: 1)
Press return to continue
`
The file FusionAhrs.c is there in Fusion sub directory but I don't know what the rest of the path should be.
Thank you in advance.
from fusion.
I had downloaded setup.py and placed it in Fusion-main directory...
Why are you rearranging the files? You should download the whole repository and run setup.py as it is.
from fusion.
Why are you rearranging the files? You should download the whole repository and run setup.py as it is.
Thank you very much!
I just did not know it was there.
Now it works.
from fusion.
Related Issues (20)
- Roll and pitch relative to device, yaw relative to earth HOT 2
- Linear/earth acceleration very slow to catch up with movement HOT 3
- TEST data HOT 1
- Python "No code object available for imufusion" with Setup.py or pip install HOT 4
- Measurement convention for sensors other than x-imu HOT 3
- How to use the magnetometer data with different sampling frequency from the inertial sensors? HOT 1
- Gyroscope Offset Algorithm HOT 7
- Link to dissertation is broken HOT 1
- Q: Influence of motion and external acceleration HOT 3
- Very noisy Roll Pitch Yaw data HOT 5
- Recommended sampling rate? HOT 2
- yaw value changes while rotating on only roll or pitch axis. HOT 3
- 5 seconds delay in real-time operation (python) HOT 2
- Need some help setting up the algorithm. HOT 14
- Application Questions HOT 25
- Integration of GPS data to estimate position and velocity HOT 1
- Proper way of calling FusionAhrsUpdate with accel, gyro and mag all having different update rates HOT 2
- What is the difference between this algorithm and madwick gradient algorithm? Can it still be called gradient descent algorithm? HOT 7
- 做过这块IMU融合的加一下我微信 HOT 1
- data advice request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusion.