BCLab-UNM / SC2

Swarmathon Team Code for the NASA Space Challenge 2 Competition
MIT License
2 stars 0 forks source link

src/scoot/src/Scoot.py: added light methods calling light service #219

Closed Carter90 closed 3 years ago

Carter90 commented 3 years ago

./srcp2-competitors/docker/scripts/run_srcp2_final -C /home/carter/SC2/misc/one_scout.yaml

in gazebo go to the world tab, scroll down to bottom and delete the 2 sun lights to make it more visible, you will notice the rover spawns with what seems like a medium light.

./build.sh
./runREPL.sh
scoot.light_off()
scoot.light_on()
scoot.light_low()

scoot.light_intensity(0)
scoot.light_intensity(.5)
scoot.light_intensity(.1)
scoot.light_intensity(1)

Something to note that the intensity is supposedly proportional to the distance it projects so an intensity of 1 should go 20 meters, I have wrote the code in that spirit https://gitlab.com/scheducation/srcp2-final-public/-/wikis/3.-Simulation/4.-Rovers/1.-Common-Drive-Train-and-Sensors-Pack

Resolves #68

abbypribis commented 3 years ago

Is almost invisible without turning out the sun spotlight as well.