Difference between revisions of "Moving around"
From Lofaro Lab Wiki
(Created page with "change directory cd catkin_ws/src clone the package <nowiki>git clone https://github.com/pnpdiode/youbots_move.git nodes</nowiki> move up one directory cd .. run catkin mak...") |
|||
(One intermediate revision by the same user not shown) | |||
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 | ||
− | Now open a gazebo with 2 youbots | + | 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 | roslaunch youbot_gazebo_robot youbot.launch | ||
− | run the python script | + | Open a new terminal and run the python script |
rosrun nodes mover.py | rosrun nodes mover.py | ||
You should see 2 youbots doing movements such as forward, backwards, sideways, and rotating. | You should see 2 youbots doing movements such as forward, backwards, sideways, and rotating. |
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.