BerkeleyAutomation / autolab_core

Core utilities for Berkeley AutoLab.
https://berkeleyautomation.github.io/autolab_core
Apache License 2.0
80 stars 39 forks source link

Fix bug in linear_trajectory_to method. #41

Closed shivamvats closed 2 years ago

shivamvats commented 2 years ago

Fixes #40 using np.linspace.

>>> a = RigidTransform()
>>> for i in range(10):
...     print(i, len(a.linear_trajectory_to(a, i)))
... 
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
mjd3 commented 2 years ago

Thanks for the PR! This is definitely a bug that needs to be fixed. Would you mind adding this test to the relevant test file as well?

shivamvats commented 2 years ago

@mjd3 Done

mjd3 commented 2 years ago

Thanks for the PR and adding the test! Will fix up formatting and merge in.