Welcome to o80’s documentation!¶
o80 (pronounced ‘oh eighty’) is a tool for synchronizing processes while organizing exchange of information between them. The information exchanged are commands for computing (robotic) desired states and observations, where state and observation are user class (and o80 classes are templated over them). o80 is in c++, with python wrappers.
Here is a basic usage of o80, using python:
# starts a process running robot control at
# 1000Hz
frequency = 1000
start_standalone("my_robot",frequency)
# creating a frontend for communicating with the robot
frontend = FrontEnd("my_robot")
# creating a command requesting the desired state of
# the 0th actuator to reach the value of 100 in 3 seconds
frontend.add_command(0,State(100),Duration.seconds(3),QUEUE)
# same for the 1th actuator
frontend.add_command(1,State(100),Duration.seconds(3),QUEUE)
# send the commands. The desired states of 0th and 1st dof
# of the robot interpolates from their initial values to 100.
# Once this is achieved, an observation is returned
observation = frontend.pulse_and_wait()
# reading the state of the robot
state0 = observation.get_observed_states().get(0).get()
state1 = observation.get_observed_states().get(1).get()
# stopping the robot
stop_standalone("my_robot",frequency)
A useful complement to this webpage is the documentation of the o80_example package, which provides a concrete implementation of an o80 project.
The github source code of o80 is here.
General Documentation¶
C++ API¶
Indices and Tables¶
License and Copyrights¶
BSD 3-Clause License
Copyright (c) 2020, Intelligent Soft Robots All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.