-
Notifications
You must be signed in to change notification settings - Fork 0
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
Impossible to load irrlicht device (MacOS) #3
Comments
Ciao @lrapetti! Thanks for reporting this error in an issue. yes, this is exactly the same thing that corresponds to the known issue mentioned in the README. For this what I did was not run Instead, I ran the docker Daemon on Linux using sudo dockerd and then I ran the sudo docker run -it --net=host --env="DISPLAY=$DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix" ghcr.io/ami-iit/human-base-estimation-docker:latest By doing this, things should work fine. But then I am not sure if there are better alternatives to this. |
@lrapetti can you try to install xquartz and launch it? An alternative may be to avoid use a irrlicht device that uses the xserver, @prashanthr05 here for what you are using irrlicht? Saving images to a file/movie? |
It's for visualizing the output trajectory using iDynTree Visualizer as the experiment runs in the background. |
@lrapetti some references:
In general, I would first try |
I try to document here for reference what I have tested:
But nothing worked out |
I don't have a solution for this at the moment. I would suggest following the manual instructions below forgoing the Docker-based launching, and instead preparing the environment in the host system itself.
brew install tmuxinator
# in linux, run
# sudo apt install tmuxinator
# Download
curl -LO https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
# Install with default options
sh ./Mambaforge-$(uname)-$(uname -m).sh -b
# init conda and mambaforge
~/mambaforge/condabin/conda init
~/mambaforge/condabin/mamba init
mamba create -n humanoids22 python=3.8
git clone https://github.com/ami-iit/paper_ramadoss_2022_humanoids_human-base-estimation
cd paper_ramadoss_2022_humanoids_human-base-estimation
# update the virtual environment and remove unwanted files to keep the size small
mamba env update --name humanoids22 --file deps/robotology-deps.yml && \
mamba clean --tarballs --index-cache --packages --yes && \
find ${CONDA_DIR} -follow -type f -name '*.pyc' -delete && \
mamba clean --all --yes
# activate environment
mamba activate humanoids22
# copy the tmuxinator config (create the .config/tmuxinator folder in home if it is not created automatically)
cp conf/tmux-humanoids.yml ~/.config/tmuxinator/humanoids22.yml
git clone https://github.com/ami-iit/kindynfusion
git fetch origin humanoids2022:humanoids2022
git checkout humanoids2022
cd kindynfusion/src/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DALLOW_IDL_GENERATION=ON \
-DCMAKE_INSTALL_PREFIX=<where-you-want-to-install> ..
make && make install
export KinDynFusion_DIR=<where-you-installed-kindynfusion>
export YARP_DATA_DIRS=${YARP_DATA_DIRS}:${KinDynFusion_DIR}/share/yarp
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${KinDynFusion_DIR}/lib
# to check if correctly, installed run
yarpdev --list | grep WholeBodyKinematics
# this should print
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsDevice", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsDevice.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsLogger", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsLogger.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsRemapper", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsRemapper.so library).
#[INFO] |yarp.dev.Drivers| Device "WholeBodyKinematicsVisualizerDevice", available on request (found in <where-you-installed-kindynfusion>/lib/yarp/WholeBodyKinematicsVisualizerDevice.so library).
# Also add `yarp` and `human-gazebo` to YARP_DATA_DIRS
export YARP_DATA_DIRS=${YARP_DATA_DIRS}:~/conda/envs/humanoids22/share/yarp:~/conda/envs/humanoids22/share/human-gazebo
yarp namespace /robot
tmuxinator start humanoids22 Everything will launch automatically and the session will close at the end of the experiment. |
Hi @prashanthr05, I have tried to run the docker image on my laptop (MacOS 11.3.1), but I am getting a
Segmentation Fault
with the following error displayedI am not sure if it corresponds to the "known issue" mentioned in the readme, and in case what is your suggestion?
The text was updated successfully, but these errors were encountered: