Forum Replies Created
-
AuthorPosts
-
Sean RobinsonParticipant
You are not the first to encounter this problem.
@solanic has made updates to theBuild-Ubunutu.sh
script for LM 21.
@marcocspc is running the sandbox in an Ubuntu 18.04 container on an Ubuntu 22.04 host.A third option would be to install LM 19. This is the latest “officially” supported version, but your IT department may not like a post-end-of-life OS on their network.
Sean RobinsonParticipant@robbo I agree that turning the camera or projector is a solution. Calibrating the Kinect and projector as they are should also work.
I was wrong (darn faulty memory) to say the virtual disc will project onto the real disc after calibration, but the red cross-hairs will follow the center of the real disc. And the sandbox projection should match up with the sand forms.
Sean RobinsonParticipantIf I am picturing things correctly, I believe you are fine for this point in the calibration. Only use the disc color as feedback during calibration: yellow means a capture will not work, while a green disc means the Kinect has a good reading to use for calibration. Ignore the position of the projected disk until after you have captured at least nine tie points, then the projected disc should closely follow the real disc.
Oliver covers this in his calibration video, but I know I was confused the first time I saw the disc projected on the wrong side of our sandbox.
Sean RobinsonParticipantPlease post a transcript of a terminal session where you run the failing command and the errors you receive. Also, include the output of the terminal command
ls -lR ~/src/scripts
and the contents of/home/alfredo/src/scripts/weather.sh
.I suspect you have all the pieces in place and it is just a matter of patching them together.
Sean RobinsonParticipantWelcome to the forum.
Could you post a transcript of the commands you type and the output you see? The context (current directory) and specific name used to start the command are important.
I’m looking for something like the commands in Step 11″
cd ~/src/SARndbox-2.8 ./bin/CalibrateProjector -s 1024 768
But I want to see what commands you are using.
Sean RobinsonParticipantWelcome to the forum.
Yes, the AR Sandbox should work on RHEL. There will be differences in the software installation steps. As a start, you can try the
Build-Fedora.sh
script instead of theBuild-Ubuntu.sh
script (Fedora is to RHEL as Ubuntu is to Linux Mint).AR Sandbox installation has been widely tested and documented on Linux Mint. If you are a Linux novice and don’t have someone to help debug installation difficulties on RHEL, I recommend you try Linux Mint.
Sean RobinsonParticipantWhat does it look like (on the sand) if you reshape the sand after a freeze? Do the contour lines remain frozen? Does the water flow through the new terrain or keep animating in the frozen terrain?
Can you swap out the Kinect? Are there any infrared light sources (like a covered, exterior window) that could influence the Kinect?
I’m curious what you mean by “permanent water level”. I’ve customized our sandbox, too, and I’m interested in what others have done. My own changes have mostly been to convert command line arguments (i.e. -evr and -rs) to pipe commands.
Sean RobinsonParticipantA little more information might help. What Linux distribution and version are you using? Which model GPU? Which GPU driver?
The following are ideas and questions that I might pursue, if it were my sandbox.
How much of the sandbox software is responsive during a freeze? Can you bring up menus?
What other programs freeze? Try the Vrui example
ShowEarthModel
app and leave the earth rotating, does the animation freeze? Doesglxgears
freeze?If
glxgears
does not freeze on its own, runglxgears
andSARndbox
at the same time. Doesglxgears
freeze when the sandbox freezes?Much of the above is to determine if the freeze is in the GPU or CPU.
I would try re-seating RAM and the video card in their motherboard slots. I’ve seen loose video cards cause intermittent hard freezes (i.e. only rebooting will restore the system).
Sean RobinsonParticipanthome/civur/src/scripts/weather.sha
probably does not exist, I believe you meant/home/civur/src/scripts/weather.sh
.But, are you using “civur” as your sandbox login name? If not, replace “civur” with your sandbox login name. That is,
/home/civur/src/scripts/weather.sh
might become/home/leonard16/src/scripts/weather.sh
.Also, when I press the “5” button, it closes the sandbox aplication, the same with the “6” button, the aplication freeze and then close.
I suspect, like the initial post from @nicolas-mendoza, the failed weather script is crashing the sandbox software. Do you see any errors if you start the sandbox from a terminal window?
Sean RobinsonParticipantDoh! <slaps forehead> I see, now. Yes, my instructions above have an error. The pipe file name must match in all steps. So “SARndbox.fifo” in steps 4 and 5 should be “SARndbox.pipe”. Sorry.
Good catch. Will you be posting video anywhere of your sandbox running with alternate liquids and matching colors?
Updated/Fixed steps to change color maps in a running sandbox:
1) If not already done, add a control pipe in the folder you launch SARndbox. In a terminal window, run
mknod SARndbox.pipe p
to create a pipe you will use to control the running sandbox.2) If not already done, tell SARndbox to use a control pipe. This is done with the
-cp SARndbox.pipe
option. I.e.SARndbox -uhm
becomesSARndbox -uhm -cp SARndbox.pipe
. The pipe names must match in all steps.3) Create an alternate color map file. Find “HeightColorMap.cpt” and copy it, in the same folder, to “HeightColorMap-lava.cpt”. The four columns in cpt files are (left to right) elevation, red, green, and blue. Edit “HeightColorMap-lava.cpt” to swap the red and blue values for all elevations below sea level. For example, the first line (“-40.0 0 0 80”) becomes “-40.0 80 0 0”.
4) Test your new color map in a terminal window. Run
echo "colorMap HeightColorMap-lava.cpt" > SARndbox.pipe
to change to the lava color map. Runecho "colorMap HeightColorMap.cpt" > SARndbox.pipe
to change to the default color map.5) Add
echo "colorMap <color map file>" > SARndbox.pipe
to the “switch” scripts to match the color map to the texture.6) Ask questions if you run into problems.
Sean RobinsonParticipantThank you, I believe I see the issue. Your “SARndbox.fifo” is a regular file, not a pipe. To fix this, remove the existing file before creating a new pipe with the same name.
The “p” as the first character of my output (versus “-” in your output) says the file is a pipe. You can confirm you have correctly recreated the pipe with
ls -l SARndbox.fifo
and look for the leading “p”.Your SARndbox command looks good to me.
Sean RobinsonParticipantI’m glad you found it useful.
Please post the output of
ls -l SARndbox.fifo
(or your pipe name) from the directory containing the pipe.I’m expecting it to look similar to
prw-r--r-- 1 sean users 0 Jun 8 11:58 SARndbox.fifo
.And please post the command you use to start the sandbox.
I’d like to see the ordering of arguments you are using; something like
SARndbox -uhm -fpv -cp SARndbox.fifo
.Sean RobinsonParticipant@rcinfo Welcome to the forum.
Sean RobinsonParticipant- “pause the lines”
Take a look at the “pause topography” discussion in Assign keys for Show DEM and Pause Topography.
- “How to change Textures”
First, some terminology might help your searches. Textures (and shaders) apply effects to the sand (colors, contour lines, and fluid animations). The colormap sets the colors projected onto different elevations.
Changing textures will allow you to change water to lava or sewage or other fluids, see Switch texture water to lava.
If you just want to change elevation colors, this can be done by editing “HeightColorMap.cpt” or telling the sandbox to use a new colormap through its control pipe.
- “drain the water”
There are several options, see Drain water in software.
For the evaporation rate, add a command line parameter when starting the sandbox/
SARndbox -evr 0.25
will set an evaporation rate of 0.25 cm/s.Sean RobinsonParticipantGood work. Could you share a little of what was wrong? It might later help someone with a similar problem.
-
AuthorPosts