Skip to main content

Dual quaternion ROS converter

Project description

Simple conversion methods for going from ROS geometry_msgs to dual quaternions and vice versa

NOTE: there is no concept of ‘from’ and ‘to’ as frame names aren’t tracked or used (e.g. use of Pose iso PoseStamped). It is up to the user to keep track of those.

Installation & Requirements

In this directory:

pip install .

Requirements

  • dual_quaternions

Usage

Import using:

from dual_quaternions_ros import from_ros_pose, from_ros_transform, ros_pose, ros_transform

Publishing and getting transforms from tf

This package purposefully doesn’t have methods to receive and publish transforms to tf. Instead, it supports converting transforms to various ROS messages so you can use the standard way of interfacing:

br = tf2_ros.TransformBroadcaster()
T_odom_baselink = DualQuaternion(...)
msg = geometry_msgs.msg.TransformStamped()
msg.transform = T_odom_baselink.ros_transform
msg.header.frame_id = 'odom'
msg.child_frame_id = 'base_link'
br.sendTransform(msg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dual_quaternions_ros-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

dual_quaternions_ros-0.1.0-py2-none-any.whl (3.5 kB view details)

Uploaded Python 2

File details

Details for the file dual_quaternions_ros-0.1.0.tar.gz.

File metadata

  • Download URL: dual_quaternions_ros-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/2.7.12

File hashes

Hashes for dual_quaternions_ros-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5feb3eb1c7d34fd308f55bafbd0686d09a808d847b046aac03a81b6e013f61d0
MD5 7e2c9781a6f00951a5814e4943ede397
BLAKE2b-256 0e337191430f8c1676e8b09aad436745dbbcf12cb6d51afe4db0cbdb8a303d6e

See more details on using hashes here.

File details

Details for the file dual_quaternions_ros-0.1.0-py2-none-any.whl.

File metadata

  • Download URL: dual_quaternions_ros-0.1.0-py2-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/2.7.12

File hashes

Hashes for dual_quaternions_ros-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 8c28974c47a8be31c48bf0c4761ce89a2a1fd6ded03478aedc88813aa45e9b99
MD5 4915c79999eea8655cda9eacc8a85066
BLAKE2b-256 0c14ce4d8115e01208ca20718cb81f8fddaa8c6f909dcb091cf6e18e6f2593d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page