Closed francomomo closed 3 years ago
Hi Ka Chun,
Thanks for the introduction and for opening this issue. Let's see if we can get to the bottom of it.
Can you go to this file cGlobals.h and comment out the line 215:
so that it looks like this
#if defined(LINUX)
//--------------------------------------------------------------------
// GENERAL
//--------------------------------------------------------------------
// OS specific
#include <ctime>
#include <pthread.h>
#include <dlfcn.h>
// printf
#define cPrint printf
//--------------------------------------------------------------------
// HAPTIC DEVICES
//--------------------------------------------------------------------
#if !defined (__arm__)
// #define C_ENABLE_DELTA_DEVICE_SUPPORT
#endif
#define C_ENABLE_PHANTOM_DEVICE_SUPPORT
#define C_ENABLE_LEAP_DEVICE_SUPPORT
// #define C_ENABLE_AMBF_DVRK_DEVICE_SUPPORT
// #define C_ENABLE_SIXENSE_DEVICE_SUPPORT
#endif
and then try to rebuild.
Hello Adnan,
I am able to build successfully now!! But now I am seeing the issue that ERROR! FAILED TO INITIALIZE GLFW LIBRARY
`root@cbdc51992c51:~/ambf/bin/lin-x86_64# ./ambf_simulator
ASYNCHRONOUS MULTI-BODY FRAMEWORK SIMULATOR (AMBF Simulator)
(www.aimlab.wpi.edu)
(Copyright 2019-2021)
STARTUP COMMAND LINE OPTIONS:
ambf_simulator Command Line Options: -h [ --help ] Show help -n [ --ndevs ] arg (=0) Number of Haptic Devices to Load -i [ --load_devices ] arg Index number of devices to load which is specified in input_device.yaml -e [ --enableforces ] arg (=0) Enable Force Feedback on Haptic Devices -p [ --phx_frequency ] arg (=1000) Physics Update Frequency (default: 1000 Hz) -d [ --htx_frequency ] arg (=1000) Haptics Update Frequency (default: 1000 Hz) -t [ --fixed_phx_timestep ] arg (=0) Use Fixed Time-Step for Physics (default: False) -f [ --fixed_htx_timestep ] arg (=0) Use Fixed Time-Step for Haptics (default: False) -g [ --show_gui ] arg (=1) Show GUI --ns arg Override the default (or specified in ADF) world namespace -s [ --sim_speed_factor ] arg (=1) Override the speed of "NON REAL-TIME" simulation by a specified factor (Default 1.0)
ERROR! FAILED TO INITIALIZE GLFW LIBRARY`
Can you tell me which base docker image are you using? I have had success with using images from this repo, as they have Ubuntu + ROS + VNC. https://github.com/henry2423/docker-ros-vnc
I am just using the regular ubuntu:18.04 image. I'll try out the images you mentioned!!
Do you know if there are any ways to have a visualization of the ambf simulator when running it in a docker environment on MacBook m1? Since we are running it in a container I do not know any way to have a visualization of the simulator. I would appreciate some guidance!!
If you check out the Readme of the docker image that I posted above (https://github.com/henry2423/docker-ros-vnc), they have listed the instructions on running the visualization using VNC. Once you have the visualization of the Linux OS installed by the Docker image, you can run graphical applications, like AMBF, as you would normally run them on a native OS.
You can also try this docker image (https://github.com/Tiryoh/docker-ros-desktop-vnc) as it's newer than the one above and has better instructions on setting up the visualization.
Hi! I ran into this qemu:handle_cpu_signal received signal outside vCPU context @ pc=0x356d52
issue when i ran ./ambf_simulator
. I am not sure if this is related to docker or running docker on MacBook M1. Have you guys seen similar issues in the past?
The window above is what shows up when I ran ./ambf_simulator
. The window below is when I ran roscore
This is the first time that I am seeing this issue. It may be an issue relating to the combination of docker, M1 chip, and ambf. Does roscore give that error message in red even before running AMBF? Can you try running other GUI apps in the container, such a Gedit, and Gazebo?
Hi Adnan! Thank you for your support along the way. I am able to run ambf_simulator
in Ubuntu 20.04 on parallels on Macbook M1!
Hi Adnan,
I am working on a project in PAIR lab at the University of Toronto. I am struggling to finish the build process.
I am trying this build process on a Ubuntu 18.04 container in docker on my MacBook with Apple Silicon M1.
I am getting this error when running the make command. I am wondering if you can provide some insight on what might go wrong with this.