Type tokens for ROS types
Project description
ROS Type Tokens
This is a small Python library that provides type tokens (objects that represent a type) for Robot Operating System built-in types and message types.
This library was initially developed as a utility of the HAROS framework, and is now distributed on its own.
What Is In The Box
This repository contains a Python package, and the respective source code, to create (manually or automatically) type tokens for the various ROS data types. Type tokens contain attributes not only of the type itself but also of any related subtypes. For example:
from rostypes import HEADER
HEADER.type_name # 'std_msgs/Header'
HEADER.is_builtin # True
HEADER.is_primitive # False
HEADER.is_message # True
HEADER.constants # {}
HEADER.fields # {'seq': UINT32, 'stamp': TIME, 'frame_id': STRING}
assert HEADER.fields['seq'].is_number
assert HEADER.fields['stamp'].is_time
assert HEADER.fields['frame_id'].is_string
Installing
To install this package, make sure that you have Python 2.7 or greater. Simply run the command:
pip install ros-type-tokens
Bugs, Questions and Support
Please use the issue tracker.
Contributing
See CONTRIBUTING.
Acknowledgment
This work is financed by the ERDF – European Regional Development Fund through the Operational Programme for Competitiveness and Internationalisation - COMPETE 2020 Programme and by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia within project PTDC/CCI-INF/29583/2017 (POCI-01-0145-FEDER-029583).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ros_type_tokens-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555d16b356c1f1d8476c1f7358978d62e2413d30db32c9b7910c028dc4419614 |
|
MD5 | 922de42584bdd97a01d879e34b44922e |
|
BLAKE2b-256 | c79d864301233af8013a3fe280a0e7fc97b695ce7ef92162e4aea75879737fde |