Closed jeffzma2000 closed 4 years ago
you havent pushed your code to github so i can't run it for myself but I think its a simple thing.
try ./run.sh python scripts/stimuli/3ball_change.py
when we meet on monday I can go over what run.sh
does
I pushed my code. When I use run.sh it says invalid option on line 31.
ok i pull and made a few fixes to my end of the code. I now get this error
Traceback (most recent call last):
File "scripts/stimuli/3ball_change.py", line 96, in <module>
main()
File "scripts/stimuli/3ball_change.py", line 73, in main
sim = simulation.init_sim(simulation.MarbleSim, scene_data, client) # load ramp into client
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/interface.py", line 34, in init_sim
s = sim(data, cid)
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/marble_sim.py", line 21, in __init__
self.world = scene_json
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/marble_sim.py", line 45, in world
init_lin_vel = w['init_lin_vel']
can you copy and paste the exact command and error output? (do this inthe future as well)
also so things are formatted nicely can you put them in triple back quotes ( ` )
for example
[mario@mario-pc galileo-ramp]$ ./run.sh python scripts/stimuli/3ball_change.py
No user config found, using default
INFO: Could not find any nv binaries on this host!
pybullet build time: May 20 2020 17:20:11
{'objects': {'A': {'appearance': 'Wood', 'shape': 'Ball', 'dims': array([0.3, 0.3, 0.3]), 'volume': 0.11309733552923253, 'physics': {'density': 1, 'lateralFriction': 0.3, 'mass': 0.11309733552923253}, 'position': array([-2.49429247, 0. , 1.92963858]), 'orientation': array([0. , 0.61086524, 0. ])}, 'B': {'appearance': 'Wood', 'shape': 'Ball', 'dims': array([0.3, 0.3, 0.3]), 'volume': 0.11309733552923253, 'physics': {'density': 1, 'lateralFriction': 0.3, 'mass': 0.11309733552923253}, 'position': array([3.15, 0. , 0.15]), 'orientation': array([0, 0, 0])}, 'C': {'appearance': 'Wood', 'shape': 'Ball', 'dims': array([0.3, 0.3, 0.3]), 'volume': 0.11309733552923253, 'physics': {'density': 1, 'lateralFriction': 0.3, 'mass': 0.11309733552923253}, 'position': array([0.7 , 0. , 0.15]), 'orientation': array([0, 0, 0])}}, 'ramp': {'appearance': 'ramp', 'shape': 'Block', 'dims': array([3.5, 1.8, 0.1]), 'volume': 0.63, 'physics': {'density': 0.0, 'friction': 0.3, 'mass': 0.0}, 'position': array([-1.4621949 , 0. , 0.97280116]), 'orientation': array([0. , 0.61086524, 0. ])}, 'table': {'appearance': 'table', 'shape': 'Block', 'dims': array([3.5, 1.8, 0.1]), 'volume': 0.63, 'physics': {'density': 0.0, 'friction': 0.3, 'mass': 0.0}, 'position': array([ 1.75, 0. , -0.05]), 'orientation': array([0, 0, 0])}, 'initial_pos': OrderedDict([('A', 1.9), ('B', 0.9), ('C', 0.2)])}
startThreads creating 1 threads.
starting thread 0
started thread 0
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
Creating context
Created GL 3.3 context
Direct GLX rendering context obtained
Making context current
GL_VENDOR=Intel Open Source Technology Center
GL_RENDERER=Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
GL_VERSION=4.5 (Core Profile) Mesa 19.2.8
GL_SHADING_LANGUAGE_VERSION=4.50
pthread_getconcurrency()=0
Version = 4.5 (Core Profile) Mesa 19.2.8
Vendor = Intel Open Source Technology Center
Renderer = Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
b3Printf: Selected demo: Physics Server
startThreads creating 1 threads.
starting thread 0
started thread 0
MotionThreadFunc thread started
ven = Intel Open Source Technology Center
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
ven = Intel Open Source Technology Center
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
Traceback (most recent call last):
File "scripts/stimuli/3ball_change.py", line 96, in <module>
main()
File "scripts/stimuli/3ball_change.py", line 73, in main
sim = simulation.init_sim(simulation.MarbleSim, scene_data, client) # load ramp into client
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/interface.py", line 34, in init_sim
s = sim(data, cid)
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/marble_sim.py", line 21, in __init__
self.world = scene_json
File "/home/mario/dev/galileo-ramp/deps/rigid_body_world/rbw/simulation/marble_sim.py", line 45, in world
init_lin_vel = w['init_lin_vel']
Jeffs-MBP:galileo-ramp jeffma$ ./run.sh python scripts/stimuli/3ball_change.py No user config found, using default load_config.sh: line 16: declare: -A: invalid option declare: usage: declare [-afFirtx] [-p] [name[=value] ...] load_config.sh: line 16: declare: -A: invalid option declare: usage: declare [-afFirtx] [-p] [name[=value] ...] ./run.sh: line 31: exec: --: invalid option exec: usage: exec [-cl] [-a name] file [redirection ...]
oh i though we solved this before. This is an issue with the bash version. Can you try bash --version
? You're on mac right?
I have version 5.0.17.
hm thats interesting. I didnt change any of the config stuff and this sounds like a bash issue..
i have a feeling that your system might be using sh
instead of bash. i added some stuff to the shebang to the bash files. can you pull and try again?
if that doesnt work try to explicity using bash bash run.sh echo "helloworld"
now I just get
run.sh: line 32: singularity: command not found
do I have to run a setup.sh script?
when I run ./setup.sh conda
I get
Not touching container building conda env ./setup.sh: line 29: singularity: command not found Not touching Julia
I know you said that I have to be in a job to access singularity but I'm not trying to run this on Milgram. Should I be running the setup and run in vagrant?
Also when I try to run vagrant up, I get Couldn't open file /Users/jeffma/base
.
for vagrant you have to be in the directory that contains VagrantFile
Okay the python 3ball_change.py seems to work when I run it in Vagrant.
I am running
python scripts/stimuli/3ball_change.py where 3ball_change.py
is my new script. This is outputtingno module rbw
.