Difference between revisions of "Moving around"
From Lofaro Lab Wiki
Line 9: | Line 9: | ||
make the python scripts executable | make the python scripts executable | ||
sudo chmod +x src/nodes/files/mover.py | sudo chmod +x src/nodes/files/mover.py | ||
− | Close all the terminals and open new terminal and run | + | Close all the terminals and open a new terminal and run |
roscore | roscore | ||
Now open a new terminal and run command to open gazebo with 2 youbots | Now open a new terminal and run command to open gazebo with 2 youbots |
Latest revision as of 17:43, 11 May 2016
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.