Python Dronekit Installation on Raspberry Pi 4 - dronekit-python

I'm having a bit of trouble installing python dronekit on my raspberry pi 4B (8GB) (bullseye).
I know that dronekit does not support Python3, hence I am running a virtual python environement (dronekitty)

Related

GStreamer won't show video

I ran Gstreamer tutorial's example code in both my own 2 computers.
One PC was install Ubuntu 20.04.2, GPU Nvidia GTX 1050Ti
And the remain one (i.e laptop) was install Ubuntu 18.04.5, with NVIDIA GeForce GTX 950M
And the result when built successfully ./basic-tutorial-1 was:
the ubuntu 20 PC can show the video in the display.
but the ubuntu 18 laptop is not display anything, or even any error logs.
Is there any Gstreamer's problem relate to OS.
There might be an issue with installation:
try:
sudo apt install gstreamer1.0-tools
sudo apt install gstreamer1.0-plugins-base

MATLAB interface with QEMU

I'm trying to develop a custom machine in QEMU and kind of successful in doing so. Now I want to build a module that can communicate with QEMU to provide some inputs to QEMU and interact with it.
I have chosen MATLAB to build a model that interfaces with my custom machine in QEMU. I know MATLAB has Embedded coder interface and QEMU add on that runs QEMU as third party software internally(downloads the QEMU itself).
But since I have customized QEMU for my machine, how do I interface MATLAB with custom QEMU?
I thought it would be something like running QEMU as
qemu-system-arm -machine x -s -S -kernel x.elf so that when I run QEMU with -s it listens on a port and communicate with other modules. Is this possible with MATLAB? Or is there any other way?

How do I install Docker on an NVIDIA Tegra Jetson TK1 with a 32 bit ARM processor running Ubuntu 14.04?

Docker only supports 64 bit x86 Linux, but people have made images for the Raspberry Pi with a 32 bit ARM processor. Will these work with the TK1? I am new to Docker. I am trying to put Jupyterhub on my TK1 to take advantage of the GPU via Gnumpy package for Python.
I am trying to achieve something similar to your goal. However, I am "Work in Progress", so I will try to give my best, and I will come later to make some edits if needed.
First of all, there is a docker.io package (the official Docker package on Ubuntu distributions) at ports.ubuntu.com (which is the default on the Jetson Tegra K1). This means that you can apt-get install docker.io, but it won't work because the kernel is not ready for it.
I have heard that the kernel is quite limited, but fortunately there is a guy at the developer zone who has prepared some nice kernel:
https://devtalk.nvidia.com/default/topic/823132/-customkernel-the-grinch-21-3-3-for-jetson-tk1-developed/
For the last version (yesterday: 26 April 2015) there is an interesting thing:
Added Docker support: POSIX_MQUEUE, CGROUP_PERF, CFS_BANDWIDTH
... which should enable the docker. I have yet to test this last version, I plan to do it soon.

Build C executable for Raspberry Pi on Windows or Linux

I have to design a C executable (no GUI) that is supposed to run on Raspberry PI. I'm familiar with design using IDE like Visual Studio or Eclipse (with CDT plugin). If i use Raspberry PI as a design machine, I think I have no chance to use a standard IDE. I should use makefiles and gcc compiler only.
Is there any chance to develop Raspberry PI executable using Visual Studio (for Windows) or Eclipse (for both Windows and Linux).
You can specify to eclipse projects with Makefiles. You can also specify a compilation toolchain.
So yes, you can develop and compile for Raspberry Pi or for other plateforms using Eclipse.
For getting toolchain and other tools for Rasp Pi you can find things here.
In Eclipse, you create a new or import a project choosing Makefile Project with Existing Code then add your toolchain.
If you have a newer Pi like the 4, you should be able to run eclipse directly from the Pi desktop. You can download via:
sudo apt-get install eclipse
This will be a stripped-down version and will likely run quite slow, so I agree compiling on a more powerful remote machine is better...
Is there any chance to develop Raspberry PI executable using Visual Studio (for Windows) or Eclipse (for both Windows and Linux).
Yes, this is called cross-compiling. You can set up a cross-compile toolchain for the raspberry pi on windows or linux and configure your Eclipse CDT project to build with the toolchain. You can even set up remote debugging.
This website has good information and a step-by-step guide for windows using cygwin.
This looks like a good guide for linux.
Edit:
Just realized you asked for Visual Studio on Windows. I don't think there is Visual Studio support for this. The example I pointed to sets up cygwin so you have an emulated linux environment. You could also set up a VM using free VM software and install a linux environment that way, and run eclipse CDT from there. This is what I did when setting up a cross compiling environment for the Raspi.

Raspberry pi & OpenCV of C language libarary

i am working on Project using Raspberry pi and pi camera board.
and i want to install opencv based on C language.
What is the command about installing OpenCV based on C language on Raspberry pi Board ?
Thanks for your help.
Try this:
sudo apt-get install libopencv-dev python-opencv
And go check this page.

Resources