Moving the Robot

The Pioneer 3-DX robot is an all-purpose base, used for research and applications involving mapping, teleoperation, localization, monitoring and other behaviors.

It is a so-called differential-drive mobile platform, with a powered wheel on either side of the robot body, and a rear castor wheel for balance.

Each wheel is powered by its own motor. The motion of the robot is determined by the speed on the wheels:

  • If both wheels are driven at the same direction and speed, the robot will move in a straight line.
  • If one speed is higher than the other one, the robot will turn towards the direction of the lower speed.
  • If both wheels are turned with equal speed in opposite directions, the robot will spin around the central point of its axis.

Let's see a Pioneer robot moving!


In [ ]:
# this is code cell -> click on it, then press Shift+Enter
from IPython.display import YouTubeVideo
YouTubeVideo('vasBnRS3tQk')

Initialization

Throughout the course, some code is already written for you, and organized in modules called packages. The cell below is an initialization step that must be called at the beginning of the notebook.


In [ ]:
import packages.initialization
import pioneer3dx as p3dx
p3dx.init()

Motion

Let's move the robot on the simulator!

You are going to use a widget, a Graphical User Interface (GUI) with two sliders for moving the robot in two ways: translation and rotation.


In [ ]:
import motion_widget

The cell above outputs two sliders, which control the translation and rotation of the robot. Initially both values are zero; move the slider left or right to change their values and move the robot.

Once you are familiar with the motion of the robot, please proceed to the next notebook: Motion Functions.


Try-a-Bot: an open source guide for robot programming

Developed by:

Sponsored by:

[![IEEE Robotics and Automation Society](img/logo/ras.png "IEEE Robotics and Automation Society")](http://www.ieee-ras.org) [![Cyberbotics](img/logo/cyberbotics.png "Cyberbotics")](http://www.cyberbotics.com) [![The Construct](img/logo/theconstruct.png "The Construct")](http://www.theconstructsim.com)

Follow us:

[![Facebook](img/logo/facebook.png "Facebook")](https://www.facebook.com/RobotProgrammingNetwork) [![YouTube](img/logo/youtube.png "YouTube")](https://www.youtube.com/user/robotprogrammingnet)