Using the Optional Logitech Controller


A standard Silver or Gold Magni equipped with a Raspberry Pi 3 with a Ubiquity Robotics SD card image is by default set up to work with a Logitech gamepad Controller out of the box without bothering to connect via laptop over a network. In particular the robot is tested to work with the logitech F710 controller that is widely available. It may work with other similar logitech gamepads although these are not officially supported.

If you have such a controller plug the dongle in to any USB port on the Raspberry Pi 3 that is attached to the front of the robot. If you booted up with a Ubiquity Robotics RPi image, and have the Logitech controller USB dongle installed, the joystick should start to work in a couple of minutes. The Dongle is automatically paired to the Logitech controller it does not require separate software installation.

You can test this by using the Joystick and seeing if the robot responds to commands. For safety sake, raise the robot’s wheels above the floor first. (SAFETY TIP).

If the wheels don’t move, check the troubleshooting section further below.

Logitech Controller

Logitech Controller

To operate the controller, hold down the deadman button (LB) and move the joystick.

Up - Forward, Down - Back, Left - rotate counter clockwise, Right - rotate clockwise

The controller is set to be very slow. You can increase the speed by using the (LT) button below the deadman, this will increase the maximum speed by about 25%. Moving the joytick to a position between full up and full right will move the robot in a curved path.

Modify The Logitech Joystick Default Parameters

The Logitech F710 is an approved joystick controller for the Magni robot. The default scale for the joystick is 0 to 1.0. Output values can be found in the file /opt/ros/kinetic/share/magni_teleop/param/logitech.yaml. The values most commonly modified are these:


If nothing happens, you’ll need to go back to the unboxing section and check to see if the robot is gettting power, the MCB is working and you can connect to the robot via a network (see connecting to your robot for the first time.) Check to see that your dongle is installed in the Raspberry Pi, there are fresh batteries in the Logitech Controller, and there is power going to both the Raspberry Pi and the motors. If the LEDs and the power switched are lit, you can additionally test to see if the wheels resist being turned.

Next, see if you can connect to your robot using access point (AP) mode:


(See the section on connecting to the robot.)

the robot responds by giving you its IP number. Type Control-C to kill off the ping command.

Then use the following command to login to the robot for example from a laptop networked:

ssh ubuntu@

You may get asked to authorize your key, say yes.

You next should be prompted for your password, type it in and you’ll be logged in

upon success:

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.43-v7+ armv7l)

* Documentation:

* Management:

* Support:

0 package can be updated.

0 updates are security updates.

Last login: Sat May 6 15:57:19 2017 from

To see if the joystick is running, type:

    rostopic list

If you see /joy you are good to go!

If you don’t see any topics you need to launch the logitech on the robot:

roslaunch magni_bringup base.launch >/dev/null 2>&1 &

(the /dev/null 2 >&2 & puts into background and stops output to screen)

roslaunch magni_teleop logitech.launch >/dev/null 2>&1 &

The folowing command

rostopic list


Shows everything is running. You now should be able use the controller to drive the robot.