Skip to content

Commit

Permalink
Rebased on main and bumped version (#1069)
Browse files Browse the repository at this point in the history
Fix imu input in the complete template. The imu keras part expects an array for the imu data.
  • Loading branch information
DocGarbanzo authored Dec 16, 2022
1 parent 0b74a78 commit 5d7fd50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions donkeycar/templates/complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,16 @@ def reload_weights(filename):

elif model_type == "imu":
assert cfg.HAVE_IMU, 'Missing imu parameter in config'
# Run the pilot if the mode is not user.
inputs = ['cam/image_array',
'imu/acl_x', 'imu/acl_y', 'imu/acl_z',
'imu/gyr_x', 'imu/gyr_y', 'imu/gyr_z']

class Vectorizer:
def run(self, *components):
return components

V.add(Vectorizer, inputs=['imu/acl_x', 'imu/acl_y', 'imu/acl_z',
'imu/gyr_x', 'imu/gyr_y', 'imu/gyr_z'],
outputs=['imu_array'])

inputs = ['cam/image_array', 'imu_array']
else:
inputs = ['cam/image_array']

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def package_files(directory, strip_leading):
long_description = fh.read()

setup(name='donkeycar',
version="4.4.2-main",
version="4.4.3-main",
long_description=long_description,
description='Self driving library for python.',
url='https://github.com/autorope/donkeycar',
Expand Down

0 comments on commit 5d7fd50

Please sign in to comment.