forked from eric-wieser/ros_numpy
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b45fd32
commit 8213d21
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
2.0.3 2020-07-12 | ||
---------------- | ||
2.0.4 (2021-11-02) | ||
------------------ | ||
* Modified transformations.py for quaternion convention (`#2 <https://github.com/Box-Robotics/ros2_numpy/pull/2>`_) | ||
* Added a test case for the quaternion convention | ||
* Fixed rosdep dependencies in package.xml | ||
* Contributors: Asil Orgen, Tom Panzarella | ||
|
||
|
||
2.0.3 (2020-07-12) | ||
------------------ | ||
* Renamed fork to ``ros2_numpy`` | ||
* Start tracking changes in CHANGELOG at 2.0.3 | ||
* Contributors: Tom Panzarella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
import numpy as np | ||
import geometry_msgs | ||
|
||
import ros2_numpy as rnp | ||
import ros2_numpy.transformations as trans | ||
|
||
class TestQuat(unittest.TestCase): | ||
def test_representation(self): | ||
q = trans.quaternion_from_euler(0., 0., 0.) | ||
self.assertTrue(np.allclose(q, np.array([0., 0., 0., 1.]))) | ||
|
||
def test_identity_transform(self): | ||
H = rnp.numpify(geometry_msgs.msg.Transform()) | ||
self.assertTrue(np.allclose(H, np.eye(4))) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |