Skip to content

nmarticorena/ros_workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ros_workshop

Source code examples for ROS workshop

Crear workspace

cd #se accede a HOME
mkdir -p workshop_ws/src #se crea una carpeta workshop/src
cd workshop_ws/src #se accede a la nueva carpeta
catkin_init_workspace #se crea un workspace
cd .. #volvemos al origen del workspace
catkin_make #compilamos
source devel/setup.bash #se agrega el env del nuevo workspace a la consola (se agregan los nuevos comandos)
echo "source ~/workshop_ws/devel/setup.bash" >> ~/.bashrc 

Configuración git

cd $HOME
git clone https://github.com/uchile-robotics/ros_workshop.git #se descarga el repositorio
cd ros_workshop #se abree el root del nuevo repo
ln -s $HOME/ros_workshop/ros_workshop/ $HOME/workshop_ws/src/ros_workshop # se crean accesos directos del repo en nuestro 
ln -s $HOME/ros_workshop/rosaria/ $HOME/workshop_ws/src/rosaria
#Compile git archives

#Se debe acceder al workshop y compilar el nuevo repo

cd
cd workshop_ws
catkin_make

Crear package

cd $HOME/workshop_ws/src
catkin_create_pkg test_pkg rospy tf std_msgs std_srvs

Configuración para package con código Python

roscd test_pkg
mkdir -p src/test_pkg
cd src/test_pkg
touch __init__.py

Nodo Python

roscd test_pkg/src/test_pkg
touch test.py
chmod +x test.py

Recursos útiles

About

Source code examples for ROS workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 49.1%
  • Python 25.4%
  • Other 13.3%
  • C++ 12.2%