Comments (16)
I pushed a fix to raisimLib. Now it should display an error message
from raisimogre.
Alright, problem was in the joint definition:
<joint name="corner1_joint" type="fixed">
<parent link="bae_link"/>
I made a typo in the parent link name.
Regardless, raisimLib or raisimOgre should probably handle it differently than simply a black screen.
from raisimogre.
I pulled and rebuild raisimLib and raisimOgre, but now my program instantly crashes with a "SIGILL (Illegal instruction)". (For both valid and invalid URDF files.)
Could something have gone wrong?
from raisimogre.
are you testing it on Linux?
from raisimogre.
that might be due to a discrepancy between the linked library and one used for compilation. Can you do a clean build?
from raisimogre.
Yeah, I'm testing on Linux.
I've done a clean build on both libraries and my application, with no changes.
from raisimogre.
can you identify which line is causing the error?
from raisimogre.
Not really. The error happens before the first line the debugger can catch.
It also happens with an empty program:
#include <iostream>
#include <string>
#include <raisim/OgreVis.hpp>
#include "raisimBasicImguiPanel.hpp"
#include "raisimKeyboardCallback.hpp"
#include "helper.hpp"
int main() {
return 0;
}
When I comment out the line #include "raisimBasicImguiPanel.hpp"
the program does run. I copied those *.hpp headers again from the raisimOgre examples. I'm not sure if they've been changed.
EDIT: I also cannot run the 'primitives' example from raisimOgre. Should have tried that before.
EDIT 2: Same error with raisimLib examples.
from raisimogre.
can you ldd the executable and see what raisim it is linking against?
from raisimogre.
ldd ./anymal
output:
robert@kubuntu:~/Libraries/raisimOgre/examples/build$ ldd anymal
linux-vdso.so.1 (0x00007ffc41f84000)
libraisimOgre.so => /home/robert/Libraries/local/lib/libraisimOgre.so (0x00007fd9a26b3000)
libOgreBites.so.1.12.2 => /home/robert/Libraries/local/lib/libOgreBites.so.1.12.2 (0x00007fd9a266b000)
libOgreMain.so.1.12.2 => /home/robert/Libraries/local/lib/libOgreMain.so.1.12.2 (0x00007fd9a2161000)
libraisim.so => /home/robert/Libraries/local/lib/libraisim.so (0x00007fd9a1ec6000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd9a1ccd000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd9a1b7e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd9a1b61000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd9a196f000)
libOgreRTShaderSystem.so.1.12.2 => /home/robert/Libraries/local/lib/libOgreRTShaderSystem.so.1.12.2 (0x00007fd9a1850000)
libassimp.so.4 => /home/robert/Libraries/local/lib/libassimp.so.4 (0x00007fd9a0fef000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd9a0fcc000)
libOgreOverlay.so.1.12.2 => /home/robert/Libraries/local/lib/libOgreOverlay.so.1.12.2 (0x00007fd9a0f59000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd9a0e1a000)
libXt.so.6 => /lib/x86_64-linux-gnu/libXt.so.6 (0x00007fd9a0bb1000)
libXaw.so.7 => /lib/x86_64-linux-gnu/libXaw.so.7 (0x00007fd9a093d000)
libSDL2-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x00007fd9a07e8000)
libzzip-0.so.13 => /lib/x86_64-linux-gnu/libzzip-0.so.13 (0x00007fd9a07df000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd9a07c3000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd9a07bb000)
libraisimPng.so => /home/robert/Libraries/local/lib/libraisimPng.so (0x00007fd9a0579000)
libraisimODE.so => /home/robert/Libraries/local/lib/libraisimODE.so (0x00007fd9a0279000)
libraisimMine.so => /home/robert/Libraries/local/lib/libraisimMine.so (0x00007fd9a0065000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd9a27c7000)
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fd99ffa6000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd99ff7a000)
libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007fd99ff6f000)
libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007fd99ff51000)
libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007fd99ff3c000)
libXmu.so.6 => /lib/x86_64-linux-gnu/libXmu.so.6 (0x00007fd99ff20000)
libXpm.so.4 => /lib/x86_64-linux-gnu/libXpm.so.4 (0x00007fd99fd0e000)
libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007fd99fc11000)
libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007fd99fbbc000)
libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007fd99fbaf000)
libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007fd99fbaa000)
libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007fd99fb98000)
libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007fd99fb8b000)
libXss.so.1 => /lib/x86_64-linux-gnu/libXss.so.1 (0x00007fd99fb84000)
libXxf86vm.so.1 => /lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fd99fb7d000)
libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007fd99fb78000)
libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007fd99fb67000)
libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007fd99fb5c000)
libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007fd99fb1a000)
libraisimZ.so => /home/robert/Libraries/local/lib/libraisimZ.so (0x00007fd99f8ff000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fd99f8c7000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fd99f8c1000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fd99f8b9000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fd99f8b0000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fd99f894000)
libpulsecommon-13.99.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so (0x00007fd99f812000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fd99f7c1000)
libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fd99f5b7000)
libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fd99f5af000)
libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007fd99f5a1000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fd99f4f2000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007fd99f4e6000)
libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007fd99f469000)
libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007fd99f263000)
libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007fd99f24c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd99f241000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fd99f218000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fd99f1f7000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fd99f0d9000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fd99f0ba000)
libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007fd99f07c000)
libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007fd99f06f000)
libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007fd99f041000)
libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007fd99ef96000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fd99ef7a000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fd99ef55000
from raisimogre.
is libraisim.so
in /home/robert/Libraries/local/lib
latest? I can run all raisimOgre and raisimLib examples. All unit tests are passing in Azure pipeliens.
from raisimogre.
Odd.
I can reproduce my problem with Docker. The Dockerfile:
FROM utwentebe/gcc-ogre:latest
# Get packages
RUN apt update -qqq && \
apt install -y libeigen3-dev
# Clone and install RaiSim
RUN git clone https://github.com/raisimTech/raisimLib.git && \
cd raisimLib && \
mkdir build && \
cd build && \
cmake .. && \
make install
(Or an alternative Dockerfile that does not depend on my custom base container:)
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Get packages
RUN apt update -qqq && \
apt install -y build-essential git cmake libeigen3-dev
# Clone and install RaiSim
RUN git clone https://github.com/raisimTech/raisimLib.git && \
cd raisimLib && \
mkdir build && \
cd build && \
cmake .. && \
make install
And running it with:
$ sudo docker build -t raisim .
$ sudo docker run -it --rm --entrypoint="/bin/bash" raisim
# cd /raisimLib/build/examples
# ./anymals
from raisimogre.
I reverted the last change. Can you pull and try again?
from raisimogre.
I figured out the issue. I compiled with my laptop but the compilation architecture was set to "native". It contains a few instructions that are not available on your PC.
from raisimogre.
I also pushed the new changes to feature/haswell after recompiling it with march=haswell. Can you test it? Im on holidays now and I only have a laptop with me
from raisimogre.
It's working again!
Thank you for your help.
from raisimogre.
Related Issues (20)
- Why the examples such as ANYmal can not move? HOT 1
- Scaling function HOT 1
- Height map is not visualized correctly HOT 3
- OgreVis.hpp: No such file or directory HOT 7
- ImportError: .cpython-36m-x86_64-linux-gnu.so: undefined symbol: HOT 4
- Finding an old repository HOT 1
- License Issue? graphics issue? HOT 1
- Compilation error: expression cannot be used as a function HOT 5
- Segmentation fault when trying to run the examples HOT 4
- Multiple threads for different views HOT 5
- Possibility of rendering one ogre visualization frame in different threat or loop HOT 2
- Stereo camera possible? HOT 2
- Problem with changing the friction coefficient between robot's feet and ground HOT 22
- Unknown argument -OGRE_BUILD_COMPONENT_JAVA=OFF HOT 1
- PCRE SWIG problem solved HOT 4
- Unable to make the ogre (and hence raisimOgre) in Ubuntu 22.04 HOT 4
- Typo in cmake .. command for raisimOgre HOT 1
- FileNotFoundException: Cannot locate resource collection.material in resource group General. HOT 1
- Problems encountered during compilation and installation 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 raisimogre.