I get the following error when I try to run liveplotter:
AttributeError: ‘anonymous_interface’ object has no attribute ‘pos_estimate’
I run directly from command line python (not Anaconda).
odrivetool alone works just fine.
C:\Users\mihai>python -V
Python 3.8.6
C:\Users\mihai>odrivetool liveplotter
Installed tk event loop hook.
Waiting for ODrive...
Showing plot. Press Ctrl+C or close plot to exit.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
File ~\AppData\Local\Programs\Python\Python38\Scripts\odrivetool:278
276 if __name__ == "__main__":
277 try:
--> 278 exit_code = asyncio.run(main())
279 except KeyboardInterrupt:
280 ui.info("Operation aborted.")
File c:\users\mihai\appdata\local\programs\python\python38\lib\asyncio\runners.py:44, in run(main, debug)
42 if debug is not None:
43 loop.set_debug(debug)
---> 44 return loop.run_until_complete(main)
45 finally:
46 try:
File c:\users\mihai\appdata\local\programs\python\python38\lib\asyncio\base_events.py:616, in BaseEventLoop.run_until_complete(self, future)
613 if not future.done():
614 raise RuntimeError('Event loop stopped before Future completed.')
--> 616 return future.result()
File ~\AppData\Local\Programs\Python\Python38\Scripts\odrivetool:274, in main()
273 async def main():
--> 274 return await run_command()
File ~\AppData\Local\Programs\Python\Python38\Scripts\odrivetool:243, in run_command()
237 print("Showing plot. Press Ctrl+C or close plot to exit.")
239 # If you want to plot different values, change them here.
240 # You can plot any number of values concurrently.
241 await run_liveplotter([
242 my_odrive.vbus_voltage,
--> 243 my_odrive.axis0.pos_estimate,
244 my_odrive.axis0.vel_estimate,
245 ])
247 elif args.command == 'rate-test':
248 from odrive.utils import rate_test
AttributeError: 'anonymous_interface' object has no attribute 'pos_estimate'