Comments (18)
It seems that the problem is like this:
https://stackoverflow.com/questions/13489940/stupid-bug-with-fscanf-comma-instead-of-point
I solved the problem setting the following environment variables before executing grsim:
$ export LANG=en_US.UTF-8
$ export LC_CTYPE=en_US.UTF-8
$ export LC_ALL=en_US.UTF-8
from grsim.
Many of our team had this problem. Eventually it turned out to be because their Ubuntu was configured for the dutch format, where the comma is used as a decimal. The grsim xml uses dots as decimal, so there it probably goes wrong when ODE reads these. So make sure your system uses dots as decimal.
from grsim.
Yes, the first time grSim was working, but later emerge this problem, and I thought that problem was GCC or Operative system (Ubuntu 16.04), then I tested with Ubuntu 14.04 but was same.
from grsim.
@mahi97 Hello,
Possibly I have a solution. I think there are issues with this vartypes file, because:
I deleted vartypes and I have reinstalled it and I had this error:
[ 41%] Building CXX object CMakeFiles/vartypes.dir/vartypes/gui/moc_VarItem.o In file included from /tmp/vartypes/./vartypes/VarTypesFactory.h:37:0, from /tmp/vartypes/./vartypes/VarTypesInstance.h:17, from /tmp/vartypes/./vartypes/VarTypes.h:42, from /tmp/vartypes/build/vartypes/gui/../../../vartypes/gui/VarItem.h:25, from /tmp/vartypes/build/vartypes/gui/moc_VarItem.cxx:9: /tmp/vartypes/./vartypes/primitives/VarAny.h:27:45: fatal error: boost/archive/binary_iarchive.hpp: No existe el archivo o el directorio compilation terminated. CMakeFiles/vartypes.dir/build.make:444: fallo en las instrucciones para el objetivo 'CMakeFiles/vartypes.dir/vartypes/gui/moc_VarItem.o' make[2]: *** [CMakeFiles/vartypes.dir/vartypes/gui/moc_VarItem.o] Error 1 CMakeFiles/Makefile2:67: fallo en las instrucciones para el objetivo 'CMakeFiles/vartypes.dir/all' make[1]: *** [CMakeFiles/vartypes.dir/all] Error 2 Makefile:127: fallo en las instrucciones para el objetivo 'all' make: *** [all] Error 2
I have had to install vartypes from google like this:
- I downloaded from page: https://code.google.com/archive/p/vartypes/downloads (vartypes-0.7.tar.gz), and then I did this:
tar xfz vartypes-0.7.tar.gz cd vartypes-0.7 mkdir build && cd build cmake .. make sudo make install
from grsim.
Are you sure that you'r using ODE with double precision ?
from grsim.
I'm having the same issue. I did "./configure --enable-double-precision --with-trimesh=opcode --enable-new-trimesh --enable-shared -enable-release" before installing, as I saw in other threads assuming that will solve the problem, but I'm still getting the error.
I have Ubuntu 16.04 and recently installed ODE 0.13.
from grsim.
As I personally tested grSim only on Ubuntu 14.04 and macOS i'm not sure about it, but is seems, as it's happened for the second time, that config files (~.xml) which made by vartypes from the first time cause this error. maybe because language setting or any other related settings.
I will test grSim on 16.04 ASAP.
from grsim.
I test it on 16.04 lately and i hadn't any problem, can you share your *.xml files here ?
from grsim.
Hola,
What .xml files you need? I dont see .xml files in my grSim folder
from grsim.
@mahi97 I erased the .grsim.xml file on home folder, and I was able to run the simulator again, but got this:
XML Parsing error inside file '/home/pablo/.grsim.xml'.
Error: File not found
At line 0, column 0.
I also got this the first time I ran the the simulator after installed it but I think wasn't important, what could it be? Is it our problem? Sharing my .xml by the way.
from grsim.
Error is the second time that you run grsim. My .xml file:
from grsim.
@Anamaria11 It worked for me! Thank you a lot. I'm fighting with the simulator right now but I have no issues now running it.
from grsim.
Sorry for late response i was too busy about IranOpen.
I think any error related to xml files can only came from vartypes xml file, but grSim currently work with vartypes 0.8 and vartypes from google code is version 0.7 so I think change form version 0.7 to 0.8 may cause this issue. but I never get this error though so i still thinking that the problem is the way that vartypes save and load data form xml files.
from grsim.
I solved this problem using a Docker container (it is easy if you have any problem it just restart container) look my repository: https://github.com/bermeom/grSim-docker or https://hub.docker.com/r/bermeom/grsim/
from grsim.
thanks @Anamaria11, it work for me too
from grsim.
(Ubuntu 18.04 LTS and 16.04 LTS) I compiled and installed ODE with the "--enable-double-precision" flag but I got the same error, then, I tried to apply the @Anamaria11 's solution (installing vartypes 0.7) but I couldn't because of problems with c++11, but I found that, if I close grSim, open ~/.grsim.xml and change all the dots by commas (except by "?xml version="1.0" encoding="utf-8"?" and "VarString name="Vision multicast address" 224.5.23.2 /VarString"), it works. But I have to do that every time I want to open grSim.
from grsim.
@edgarcamilocamacho This worked for me too.
from grsim.
Please test this PR #84.
I Hope this fixes the issue.
from grsim.
Related Issues (20)
- Default values for fps and ode time step are inconsistent
- Reflect the latest field geometry in the default configuration
- Windows support and installation instructions HOT 6
- Travis has run out of credits HOT 9
- Bots can not kick while dribbler is on HOT 1
- `grSim_RobotReplacement::yellowteam` is not used to determine the team for RobotReplacement HOT 4
- Ball collision with robot chassis is not being handled HOT 1
- Add sounds when match events (robots moving, robot shooting the ball, ball coliding) occur
- Possible division by zero on robot speed handling causing crashes HOT 5
- Fix CI pipeline for Windows and macOS
- A segmentation fault of ODE
- Make the robots stop moving after the simulator stopped receiving packets to move the robots for some time
- Software for Manjaro Linux HOT 11
- Dependency Dashboard
- cmake in Mac OS HOT 5
- Cant build on Mac HOT 3
- fix windows pipeline HOT 1
- Two Wheels (2, 3) Not in Contact with Ground in GrSim Simulator HOT 1
- Turn off robots with robocup ssl protocol causes collision between robots
- Sim Time initially negative due to last_dt being negative
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 grsim.