ROS2 Camera Graph
File: ros2_camera.py
License: BSD-3-Clause. Copyright (c) 2023, Micah Nye. All rights reserved.
Classes:
The class that implements the ROS2 Camera graph. |
- class pegasus.simulator.logic.graphs.ros2_camera_graph.ROS2CameraGraph
Bases:
Graph
The class that implements the ROS2 Camera graph. This class inherits the base class Graph.
Methods:
__init__
(camera_prim_path[, config])Initialize the ROS2 Camera class
camera_labels_topic
(camera_type)(str) Path to the camera labels topic.
camera_topic
(camera_type)(str) Path to the camera topic.
initialize
(vehicle)Method that initializes the graph of the camera.
- __init__(camera_prim_path, config={})
Initialize the ROS2 Camera class
- Parameters:
Examples
The dictionary default parameters are
>>> {"graph_evaluator": "execution", # type of the omnigraph to create (execution, push) >>> "resolution": [640, 480], # output video stream resolution in pixels [width, height] >>> "types": ['rgb', 'camera_info'], # rgb, depth, depth_pcl, instance_segmentation, semantic_segmentation, bbox_2d_tight, bbox_2d_loose, bbox_3d, camera_info >>> "publish_labels": True, # publish labels for instance_segmentation, semantic_segmentation, bbox_2d_tight, bbox_2d_loose and bbox_3d camera types >>> "topic": "" # base topic name for the camera (default is camera name in Isaac Sim) >>> "namespace": "" # namespace for the camera (default is vehicle name in Isaac Sim) >>> "tf_frame_id": ""} # tf frame id for the camera (default is camera name in Isaac Sim)
- camera_labels_topic(camera_type)
(str) Path to the camera labels topic.
- camera_topic(camera_type)
(str) Path to the camera topic.