ROS2 foxy on Yocto 3 (zeus) - ros

I have an image built using Yocto. The version is 3.0 (zeus) and unfortunately I can't change/upgrade it since that come from the board supplier. So I've cloned the zeus branch:
git clone --single-branch --branch zeus https://github.com/ros/meta-ros.git
and added the layer to bblayrs.conf:
BBLAYERS += "${BSPDIR}/sources/meta-ros/meta-ros2-foxy"
Unfortunately the build failed with error:
ERROR: Layer ros2-foxy-layer is not compatible with the core layer
which only supports these series: zeus
What did I wrong and how to fix that?

You should add ROS_OE_RELEASE_SERIES = "zeus" to ${BUILDDIR}/conf/bblayers.conf file.

Related

ros tuetlebot3 launh file

bug
I am using ubuntu version 20.0.4
I have followed all the turtlebot simulation instruction here but don't what is the issue I also check my bashrc file all the path are correct. Can anyone help me
Update by bashrc file
Run the turtlebot launch file
You're running 20.04, which means your ROS version will be Noetic. However the tutorial you're referencing is written for Kinetic; which means you're installing a package for the wrong version.
You can either repeat the install instructions with: git clone -b noetic-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git. Or cd into the cloned package and checkout the right branch via: git checkout noetic-devel.
Note that you'll most likely need to clean your workspace as it will not have built right.

Cannot get Emscripten path, please specify it either by EMSCRIPTEN environment variable or --emscripten_dir option(opencv.js build error)

I am totally new for opencv.js.I have some problems on building opencv.js
I am using Windows 10.I follow below steps for setup opencv.js
https://docs.opencv.org/3.3.1/d4/da1/tutorial_js_setup.html
1-)First I used below link to download the Empscripten
https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#sdk-installation-instructions
2-)And execute this line son command propmpt(in empscripten folder)
emsdk
emsdk_env.bat
After this Execution , Empscripten set the path
EMSDK = C:/Users/q/Desktop/web/opencv.js/emsdk-portable-64bit
EM_CONFIG = C:\Users\q\.emscripten
3-)Download phyton 3
4-)Clone opencv
git clone https://github.com/opencv/opencv.git
5-)Execute this code to build opencv.js but i get this error
python C:\Users\q\opencv\platforms\js\build_js.py C:\OpencvJS
Error:
Cannot get Emscripten path, please specify it either by EMSCRIPTEN environment variable or --emscripten_dir option.
The problem look like "EMPSCRÄ°PTEN cannot set the path properly and part 5 fail to execute".How can i solve this problem?
export EMSCRIPTEN=~/path_to_emsdk/emsdk/upstream/emscripten
on linux
i run
# Clone, pull, and build the latest "sdk" Emscripten environment
./emsdk install sdk-incoming-64bit
# Set the "incoming SDK" as the active version.
./emsdk activate sdk-incoming-64bit
then run
source ./emsdk_env.sh
emsdk require tool and sdk
this script helped me, you can have a try

How to install cudnn.torch?

Their page contains Installation section but it is not understandable by one, who does not know torch and lua (like me): section enumerates prerequisites installtion, but has no word about cudnn.torch itself.
Repository contains bunch of lua files. What to do with them to "install"?
You have to install cuda first (https://developer.nvidia.com/cuda-downloads), then download the cudnn bindings (https://developer.nvidia.com/cuda-downloads).
Then if you have already installed torch, luarocks install cudnn should be enough.
For a full installation, you can have a look at this tuto.
You need to install from the github repo:
git clone https://github.com/soumith/cudnn.torch
cd cudnn.torch
luarocks make
Depending on your installed version of CUDA you may need to specify a specific branch of the repo, e.g. git clone https://github.com/soumith/cudnn.torch.git -b R7

Yocto how to add a gstreamer plugin?

I'm trying to build a custom image for an i.MX6 board by using Yocto.
I want to add the plugin 'gstmotioncells' from Gstreamer OpenCV Plugins ( https://github.com/GStreamer/gst-plugins-bad/tree/master/ext/opencv )
to my build.
But I can't figure out how to add this plugin to my yocto build.
I tried some things but these have not worked.
Do I need to add something to my local.conf file or do I need to modify a .bb file?
After following the instructions of jku, I still got an error.
ERROR: esomimx6-sta-image-1.0-r0 do_rootfs: Unable to install packages. Command '/home/toon/yocto/sta/esomimx6/build_esom/tmp/sysroots/x86_64-linux/usr/bin/opkg --volatile-cache -f /home/toon/yocto/sta/esomimx6/build_esom/tmp/work/esomimx6micro-poky-linux-gnueabi/esomimx6-sta-image/1.0-r0/opkg.conf -o /home/toon/yocto/sta/esomimx6/build_esom/tmp/work/esomimx6micro-poky-linux-gnueabi/esomimx6-sta-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install fsl-alsa-plugins packagegroup-core-ssh-openssh libfreetype6 packagegroup-esom-qt5 cpufrequtils glib-networking libcairo2 openssh-sftp-server packagegroup-core-boot packagegroup-core-x11-base glibmm packagegroup-fsl-gstreamer1.0-full packagegroup-esom-tools-testapps alsa-state ruby packagegroup-fsl-gstreamer1.0 packagegroup-fsl-tools-gpu gstreamer1.0-plugins-bad-opencv packagegroup-fsl-tools-testapps packagegroup-core-tools-debug opkg packagegroup-base-extended libfontconfig1' returned 255:
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'gstreamer1.0-plugins-bad-opencv'.
Do you know what is going wrong?
As a first step, you need to enable the opencv plugin in the gstreamer1.0-plugins-bad recipe. There's a packageconfig for that already so this should work in local.conf or your distro configuration:
PACKAGECONFIG_append_pn-gstreamer1.0-plugins-bad = " opencv"
(The space in front of the string is required)
This will make the recipe depend on opencv which is not in the oe-core layer. You will have to add meta-oe to your layers if it's not there already.
You'll also want to add the relevant packages to your image: Probably at least gstreamer1.0-plugins-bad-opencv. In production this would probably happen so that an application recipe that requires the opencv plugin would DEPEND on it. For testing you can just add
IMAGE_INSTALL_append = " gstreamer1.0-plugins-bad-opencv"
into your local.conf.

Fail to install MongooseIM In Mac OS

I am going to develop a chat application with MongooseIM Server, but fail to install MongooseIM sever setup on my local pc, Can any one please help me to fix this error, Thanks in advance.
Following : http://mongooseim.readthedocs.io/en/1.5.1/user-guide/Getting-started/
error :
===> Failed to fetch and copy dep:{git,"git://github.com/goj/base16.git"{ref, "f78918e7b593fbdc35ec9bcc349aa50f47f45a8b
I see those dependences are expressed using the git:// protocol.
Try instead using the https one:
git config --global url."https://".insteadOf git://
And see if the same process still fails.
Make sure you are using a recent version of git (what git --version returns?)

Resources