Get intellisense for ROS 2 interfaces
Project description
common-interfaces-intellisense
Get intellisense for ROS 2 messages. Services are not supported. This is a only intended to be used for intellisense purposes. Useful if developing on another system than where ROS 2 is available (Docker for example). Code within this package is NOT intended to be ran.
Installation
pip install common-interfaces-intellisense
Usage
from geometry_msgs import Quaternion
from std_msgs import String
# will now get intellisense
msg = Quaternion()
# or
msg = String(data="my string")
Here is an example of a generated class:
# flake8: noqa
from ..common_interfaces.base_types import *
from ..std_msgs import Header
from . import RegionOfInterest
from typing import Any
class CameraInfo:
"""
https://github.com/ros2/common_interfaces/blob/humble/sensor_msgs/msg/CameraInfo.msg
Args:
header: No information
height: No information
width: No information
distortion_model: No information
d: No information
k: 9 elements
r: 9 elements
p: 12 elements
binning_x: No information
binning_y: No information
roi: No information
"""
def __init__(
self,
header: Header | Any = None,
height: uint32 | int = None,
width: uint32 | int = None,
distortion_model: string | str = None,
d: list[float64] | list[float] = None,
k: list[float64] | list[float] = None,
r: list[float64] | list[float] = None,
p: list[float64] | list[float] = None,
binning_x: uint32 | int = None,
binning_y: uint32 | int = None,
roi: RegionOfInterest | Any = None,
):
self.header: Header | Any
self.height: uint32 | int
self.width: uint32 | int
self.distortion_model: string | str
self.d: list[float64] | list[float]
self.k: list[float64] | list[float]
self.r: list[float64] | list[float]
self.p: list[float64] | list[float]
self.binning_x: uint32 | int
self.binning_y: uint32 | int
self.roi: RegionOfInterest | Any
Build
from common_interfaces.build import BuildInterfaces
BuildInterfaces().build()
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
Close
Hashes for common_interfaces_intellisense-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f1df33310bb902f2fa9fb3c8230925a4866cd81b064d41ffc9698a8734e8c0 |
|
MD5 | f66496f3e1597f6dfb3cd34f07153d3a |
|
BLAKE2b-256 | 6352bf23d16da9089ecb74d5d4f3c73a17280d6804c8712ebd7c4b2adceff1c7 |
Close
Hashes for common_interfaces_intellisense-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66fd4229767b36828833eca97a7fd8251bb066c9cb20225b5914344201041bac |
|
MD5 | 4f6009589a65dfd58b9080b8934d3b05 |
|
BLAKE2b-256 | 4ecd770d0b51a19a2be571627d43d1de983dc0c86bdafeea05cff6946ea21a17 |