Moving around

From Lofaro Lab Wiki
Jump to: navigation, search

change directory

cd catkin_ws/src

clone the package

git clone https://github.com/pnpdiode/youbots_move.git nodes

move up one directory

cd ..

run catkin make

catkin_make

make the python scripts executable

sudo chmod +x src/nodes/files/mover.py

Close all the terminals and open a new terminal and run

roscore

Now open a new terminal and run command to open gazebo with 2 youbots

roslaunch youbot_gazebo_robot youbot.launch 

Open a new terminal and run the python script

rosrun nodes mover.py

You should see 2 youbots doing movements such as forward, backwards, sideways, and rotating.