amino  1.0-beta2
Lightweight Robot Utility Library
defaults.py
Go to the documentation of this file.
1 # Copyright (c) 2020, Colorado School of Mines
2 # All rights reserved.
3 #
4 # Author(s): Matthew A. Schack <mschack@mines.edu>
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 #
10 # * Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 #
13 # * Redistributions in binary form must reproduce the above
14 # copyright notice, this list of conditions and the following
15 # disclaimer in the documentation and/or other materials provided
16 # with the distribution.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19 # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
23 # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
25 # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
28 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
29 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 # SUCH DAMAGE.
31 
32 
35 """Default return values"""
36 import ctypes
37 from amino.lib import libamino
38 
39 
40 AA_RX_OK = ctypes.c_int.in_dll(libamino, "aa_rx_ok").value
41 
42 AA_RX_NO_SOLUTION = ctypes.c_int.in_dll(libamino, "aa_rx_no_solution").value
43 
44 AA_RX_NO_IK = ctypes.c_int.in_dll(libamino, "aa_rx_no_ik").value
45 
46 AA_RX_NO_MP = ctypes.c_int.in_dll(libamino, "aa_rx_no_mp").value
47 
48 AA_RX_INVALID_FRAME = ctypes.c_int.in_dll(libamino, "aa_rx_invalid_frame").value
49 
50 AA_RX_INVALID_PARAMETER = ctypes.c_int.in_dll(libamino, "aa_rx_invalid_parameter").value
51 
52 AA_RX_INVALID_STATE = ctypes.c_int.in_dll(libamino, "aa_rx_invalid_state").value
Definition: lib.py:1