Changes between Version 12 and Version 13 of Tutorial6AddGait
- Timestamp:
- Dec 16, 2017, 4:00:53 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial6AddGait
v12 v13 37 37 Here, the start/stop sequences are shorter. 38 38 39 There is another sequence we need to talk about, as it is used in the framework: the ''' hop''' sequence. It is used when we need to change the feet neutral positions while at neutral position. As said, feet can't slip, so we need to do a complete walk sequence, without really moving. Here, legs only use the swing phase. Note that it is possible to adjust the feet neutral position while walking; in this case, no need to perform a hopsequence; new feet neutral positions are used to compute the new target during the swing phases.39 There is another sequence we need to talk about, as it is used in the framework: the '''static''' sequence. It is used when we need to change the feet neutral positions while at neutral position. As said, feet can't slip, so we need to do a complete walk sequence, without really moving. Here, legs only use the swing phase. Note that it is possible to adjust the feet neutral position while walking; in this case, no need to perform a static sequence; new feet neutral positions are used to compute the new target during the swing phases. 40 40 41 41 == Gait tables == 42 42 43 in '''Py4bot''', all steps of a gait are defined in a table. As we've just seen, there are 4 sequences (start, walk, hop, stop), so there are 4 tables. For example, let's see how the tripod gait tables look like, in the [https://framagit.org/fma38/Py4bot/tree/master/py4bot/gaits/gaitTripod.py py4bot/gaits/gaitTripod.py] module:43 in '''Py4bot''', all steps of a gait are defined in a table. As we've just seen, there are 4 sequences (start, walk, static, stop), so there are 4 tables. For example, let's see how the tripod gait tables look like, in the [https://framagit.org/fma38/Py4bot/tree/master/py4bot/gaits/gaitTripod.py py4bot/gaits/gaitTripod.py] module: 44 44 45 45 {{{ … … 60 60 ) 61 61 62 hopTable = (62 staticTable = ( 63 63 (( 0., 1.), ( 0., 0.)), # step 0 64 64 (( 0., 0.), ( 0., 0.)), … … 71 71 ) 72 72 73 return startTable, walkTable, hopTable, stopTable73 return startTable, walkTable, staticTable, stopTable 74 74 }}} 75 75 … … 93 93 - second group is in swing phase in steps transitions 1 -> 2 and 2 -> 3, and is is stance phase in steps transitions 0 -> 1 and 3 -> 0. 94 94 95 As we see, the hoptable is the same table as the walk table, but the feet don't move in the XY plane.95 As we see, the static table is the same table as the walk table, but the feet don't move in the XY plane.
