Skip to content

Instantly share code, notes, and snippets.

View garyservin's full-sized avatar
🤖

Gary Servin garyservin

🤖
View GitHub Profile
@garyservin
garyservin / instalar-python.txt
Last active August 27, 2022 03:08
Cómo instalar Python en Windows
Para instalar Python 3.10 en Windows (esta versión debería incluir pip instalado)
1- Descargamos el instalador en un archivo ejecutable para Windows x86-64 desde la página de descargas oficial de Python.org -> https://www.python.org/downloads/.
2- Ejecutamos el instalador descargado haciendo doble click en el arhcivo con extensión exe descargado.
3- Importantísimo!! Seleccionar la opción "Add Python 3.10 to PATH" (Añadir Python 3.10 a PATH) en la primer ventana del proceso de instalación para que Windows agrege la variable de entorno.
4- Seleccionamos "Install Now" (Instalar ahora) y continuamos el proceso de instalación hasta el final.

Keybase proof

I hereby claim:

  • I am garyservin on github.
  • I am garyservin (https://keybase.io/garyservin) on keybase.
  • I have a public key ASBsRkh7qJ-X7suiTXewp18DmxXkK7Ul_nbcXLOu4X1s-Qo

To claim this, I am signing this object:

cmake_minimum_required(VERSION 2.8.3)
project(test_issue)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
)
catkin_package()
import rodi
import time
robot = rodi.RoDI() # Instanciamos un objeto RoDI
while True:
distance = robot.see() # Leemos el sensor de distancia
if distance > 10: # Si la distancia es mayor a 10 cm
robot.move_forward() # Ir hacia adelante
else: # Si la distancia es menor a 10 cm
Step 6 : RUN sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-video-intel
---> Running in f448a4370fff
Reading package lists...
Building dependency tree...
Reading state information...
libgl1-mesa-dri is already the newest version (11.2.0-1ubuntu2.2).
libgl1-mesa-dri set to manually installed.
libgl1-mesa-glx is already the newest version (11.2.0-1ubuntu2.2).
libgl1-mesa-glx set to manually installed.
The following additional packages will be installed:
$ make gazebo7-intel gazebo7-intel
docker build --build-arg gazebo_commit="64979ae" -t gazebo7 gazebo7
Sending build context to Docker daemon 5.12 kB
Step 1 : FROM ubuntu:xenial
Get https://registry-1.docker.io/v2/library/ubuntu/manifests/xenial: unauthorized: incorrect username or password
make: *** [gazebo7] Error 1
@garyservin
garyservin / gist:34bea53e53690ccc966d
Created November 26, 2015 14:59
Re-install Android SDK
docker images # Check if you have the rosndk image on the list
docker run -it rosndk bash # This will create a container based on the image
ls -l # you should have -rw-r--r-- 1 root root 140827643 Jul 2 2014 android-sdk_r23.0.2-linux.tgz
# If you don't have the file follow https://github.com/creativa77/roscpp_android/blob/master/docker/Dockerfile#L23 fron line 23, otherwise, start from line 24
# exit the container
docker commit $(docker ps -aq | head -n 1) rosndk # Commit the latest container to rosndk
./do_docker.sh