fix #18: inverse the coding and shebang line

This commit is contained in:
Brian Delhaisse
2019-11-13 20:02:37 +01:00
parent 9c194786e8
commit bc059da3cb
691 changed files with 723 additions and 667 deletions
-1
View File
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Attractor point using impedance control with RRBot
Try to move the end-effector using the mouse, and see what happens. Compare the obtained results with
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Force control: gravity compensation with RRBot
Try to move the end-effector using the mouse, and see what happens. Compare the obtained results with
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Force control: apply no forces/torques.
Try to move the end-effector using the mouse, and see what happens. Compare the obtained results with
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""In this file, we create from scratch the inverted pendulum swing-up environment defined in OpenAI Gym.
This is based on the control problem proposed in OpenAI Gym [1]:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Imitation learning demonstration using DMPs and ROS with the Franka robot.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use an imitation learning task in PyRoboLearn using Dynamic Movement Primitives as a policy,
and a mouse keyboard interface.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run the Asus Xtion interface.
Make sure that the `openni` library is installed with all the correct environment variables set, and that the Asus
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the mouse keyboard interface.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run the Openpose interface.
Make sure that the webcam is connected, and that the openpose framework has been installed before running this code.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Playstation game controller interface
How to run:
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Control a quadcopter in the air using an Xbox or Playstation game controller.
how to run:
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Control a quadcopter in the air using speech.
Try to say:
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Control a wheeled robot using a keyboard, an Xbox or Playstation game controller.
how to run:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Control a wheeled robot in the air using speech.
Try to say:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run the Space mouse interface.
Make sure that the `spnav` library is installed, and the space mouse (by 3Dconnexion) is connected to the computer
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run the speech interface.
This will perform speech recognition, translation, and synthesization. Make sure that your computer has a microphone
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run the Webcam interface.
Make sure that the webcam is connected before running this code. Note that it can take some time to initialize
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Xbox game controller interface
How to run:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""In this file, we perform forward kinematics using the Kuka robot.
The Kuka robot just draw a circle in the air. The joint positions are in the `data.txt` file.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""In this file, we perform inverse kinematics using the Kuka robot.
Set the `solver_flag` to a number between 0 and 1 (see lines [19,22]) to select which IK solver to select.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""In this file, we use and compare several IK libraries using the Kuka robot.
Namely, we compare: pybullet, PyKDL, trac_ik, and rbdl.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Inverse kinematics with the Kuka robot where the goal is to follow a moving sphere.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Draw the 2D velocity and force manipulability ellipsoids on the end-effector of a 3-link planar manipulator.
References:
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Center of mass manipulability tracking
Track the dynamic manipulability ellipsoid of the center of mass of a particular robot while keeping its balance.
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Center of mass manipulability tracking
Track the velocity manipulability ellipsoid of the center of mass of a particular robot. In this example, the robot
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Center of mass manipulability tracking
Track the velocity manipulability ellipsoid of the center of mass of a particular robot while keeping its balance.
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test the publisher using Gazebo with ROS control and Pybullet
Before running this file, read the following instructions!
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the Bullet-ROS simulator (the publisher version) in PRL.
The publisher version publish the various data on the corresponding topics every time the joints are set. If the
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test the publisher using PyBullet, ROS, and RQT.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the Bullet-ROS simulator (the subscriber version) in PRL.
The subscriber version subscribe to various topics related to the loaded robot.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide some examples using DMPs.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide some examples using GMMs.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide some examples using ProMPs.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the joint real-time plotting example.
Try to move the Kuka manipulator with your mouse, and check the joint values. Note that it can take few seconds to
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the link frame real-time plotting example.
Try to move the Kuka manipulator and / or the box with your mouse. Note that it can take few seconds to load the plot.
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Acrobot' OpenAI Gym environments in PRL using the `stable_baselines` library.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the PRL 'Acrobot' environment using the `stable_baselines` library.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PRL using the `stable_baselines` library.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Pendulum' OpenAI Gym environments in PRL using the `stable_baselines` library.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the PRL 'Acrobot' environment using the `stable_baselines` library.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a linear policy trained with
the Bayesian Optimization algorithm.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a linear policy trained with
the Cross-Entropy Method algorithm.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a linear policy trained with
the CMA-ES algorithm.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a linear policy trained with
the finite difference algorithm.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a linear policy trained with
the PoWER RL algorithm.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using NEAT.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example on how to use the 'Cartpole' OpenAI Gym environments in PyRoboLearn using a random policy
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Demonstrate the various features (operations) you can use with the ``Reward`` class.
To illustrate the various operations we use the ``FixedReward``.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Demonstrate how the reward function that measures how much a robot has moved forward increases / decreases based on
the robot velocity. Use the arrow keys on your keyboard to move the robot, and observe how the computed reward value
changes.
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Demonstrate how the distance cost decreases as you move the manipulator (with your mouse) closer to the target
object in the world.
"""
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Attach a gripper/hand to the Kuka manipulator.
In this file, you can attach different grippers / hands to the kuka robot. You can move the robot with the mouse.
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Attach the Kuka Youbot manipulator to the HyQ2Max quadruped.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Distribute several e-pucks in the world and make them move forward.
You can move in the world using the keyboard and mouse:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load a robot in a basic world.
You can move in the world using the keyboard and mouse:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Control a quadcopter in the air using an Xbox or Playstation game controller.
how to run:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Manipulate the robot's joints with sliders.
You can move in the world using the keyboard and mouse:
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Aibo robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Allegro hand.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Ant Mujoco model.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Atlas robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Ballbot robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Baxter robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the BB8 robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Cartpole robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the Cassie robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Centauro robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Cogimon robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Coman robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Crab robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Cubli robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Darwin robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the e.Do robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load some Epuck robots.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the F10 racecar robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Fetch robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Franka Emika robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the HalfCheetah Mujoco model.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Hopper Mujoco model.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Hubo robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Humanoid Mujoco model.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Husky robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the HyQ robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the HyQ2Max robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Jaco robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Kuka KR5 robotic industrial platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the Kuka IIWA robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Kuka LWR robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Laikago robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Little Dog robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load 2d manipulators.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Minitaur robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Lincoln MKZ car robotic platform.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Morphex robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Nao robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the OpenDog robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Pepper robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Phantom X robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the Pleurobot robot.
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Load the PR2 robot.
"""

Some files were not shown because too many files have changed in this diff Show More