sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
driver_wrench_example Namespace Reference

Functions

 run_motion (rdi, node, clock, name, tau, duration)
 run_test_group (rdi, node, clock, group_name, tests)
 main (args=None)

Variables

float dt = 0.01
float test_duration = 3.0
float pause_duration = 4.0
float force = 5.0
float moment = 0.5
 tau_zero = numpy.zeros(6, dtype=numpy.float64)
 S_driver = numpy.diag([1, -1, -1, 1, -1, -1])
list basic_translations
list basic_rotations
list combined_motions

Detailed Description

# Copyright (c) 2024-2026 Rawan Mohamed Elsayed and Murilo Marques Marinho
#
#    This file is part of sas_robot_driver_brov2.
#
#    sas_robot_driver_brov2 is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Lesser General Public License as published by
#    the Free Software Foundation, either version 2.1 of the License, or
#    (at your option) any later version.
#
#    sas_robot_driver_brov2 is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public License
#    along with sas_robot_driver_brov2.  If not, see <https://www.gnu.org/licenses/>.
#
# #######################################################################################
#
#   Author: Rawan M. Elsayed, email: rawan.elsayed@manchester.ac.uk
#   Co-author: Murilo M. Marinho, email: murilomarinho@ieee.org
#
# #######################################################################################

Variable Documentation

◆ basic_rotations

list driver_wrench_example.basic_rotations
Initial value:
= [
("Roll positive", [0, 0, 0, moment, 0, 0]),
("Roll negative", [0, 0, 0, -moment, 0, 0]),
("Pitch positive", [0, 0, 0, 0, moment, 0]),
("Pitch negative", [0, 0, 0, 0, -moment, 0]),
("Yaw positive", [0, 0, 0, 0, 0, moment]),
("Yaw negative", [0, 0, 0, 0, 0, -moment]),
]

◆ basic_translations

list driver_wrench_example.basic_translations
Initial value:
= [
("Forward", [ force, 0, 0, 0, 0, 0]),
("Backward", [-force, 0, 0, 0, 0, 0]),
("Left", [0, force, 0, 0, 0, 0]),
("Right", [0, -force, 0, 0, 0, 0]),
("Up", [0, 0, force, 0, 0, 0]),
("Down", [0, 0, -force, 0, 0, 0]),
]

◆ combined_motions

list driver_wrench_example.combined_motions
Initial value:
= [
("Forward + Left", [force, force, 0, 0, 0, 0]),
("Forward + Yaw", [force, 0, 0, 0, 0, moment]),
("Forward + Pitch", [force, 0, 0, 0, moment, 0]),
]