graspit-simulator / graspit

The GraspIt! simulator
http://graspit-simulator.github.io/
Other
180 stars 81 forks source link

Unable to import worlds #71

Closed notgba closed 8 years ago

notgba commented 8 years ago

Hi there,

I followed manual (get started chapter) to import dlr_flask.xml. But nothing shows up in my window. Am I missing something or is the manual out of date?

Thanks

environment: Ubuntu LTS 16.04.01

jvarley commented 8 years ago

In the terminal you are running GraspIt! is anything printed out when you run launch graspit and open the world file?

Also in that same terminal, could you please run:

env | grep GRASPIT

I normally run the following and it works on Ubuntu 14.04:

jvarley@skye:~/graspit$ export GRASPIT=$PWD
jvarley@skye:~/graspit$ env | grep GRASPIT
GRASPIT=/home/jvarley/graspit
jvarley@skye:~/graspit$ ./build/graspit_simulator -w dlr_flask
Creating base...

Setting up 12 degrees of freedom...
Creating 4 kinematic chains (fingers)...
Chain 0:   Creating joints
   Joint 0
   Joint 1
   Joint 2
   Joint 3
  Creating links
   Link 0
   Link 1
   Link 2
  Creating dynamic joints
Chain 1:   Creating joints
   Joint 0
   Joint 1
   Joint 2
   Joint 3
  Creating links
   Link 0
   Link 1
   Link 2
  Creating dynamic joints
Chain 2:   Creating joints
   Joint 0
   Joint 1
   Joint 2
   Joint 3
  Creating links
   Link 0
   Link 1
   Link 2
  Creating dynamic joints
Chain 3:   Creating joints
   Joint 0
   Joint 1
   Joint 2
   Joint 3
  Creating links
   Link 0
   Link 1
   Link 2
  Creating dynamic joints
No normalization data found; using factors of 1.0
Read 2 eigengrasps from EG file
Using eigengrasps from file: eigen/DLR_eigen.xml
Robot using Flock of Birds sensor 1
notgba commented 8 years ago

Oh, I did't try to run it in terminal.
The environment setting (GRASPIT) is ok. It's set to the graspit home path correctly.

Everything is good when I start it in command line.(already solves my problem)
But when I double click the application in the GUI. It raises my problem.

jvarley commented 8 years ago

What GUI are you referring to, GraspIt! or an IDE?

notgba commented 8 years ago

Oh, I am talking about the ubuntu GUI. What I did is just double click the executable graspit_simulator in /build folder.

jvarley commented 8 years ago

Got it. Yes, it is not working because the GRASPIT environment variable is not set when you launch it this way. Graspit uses that environment variable to locate the worlds, and models subdirectories. I would recommend launching it from the terminal, because you will also be able to see any output messages from Graspit while it is running.

jvarley commented 8 years ago

If you really want to run it from the GUI, then make a small bash script and place it next to graspit_simulator call it run.sh:

jvarley@skye:~/graspit/build$ cat run.sh
#!/bin/bash
export GRASPIT=/home/jvarley/graspit
./graspit_simulator
jvarley@skye:~/graspit/build$ chmod +x run.sh
jvarley@skye:~/graspit/build$ ./run.sh 
notgba commented 8 years ago

Thanks for the help!

Elmigdad commented 6 years ago

hello how do i open Graspit! via terminal!? and how to create my own model

Elmigdad commented 6 years ago

hello I have created my robot hand, but there is an issue of miss matching between geometry and axis of rotation .. how do I fix it please ???