Expand description
Prelude module for convenient imports
Import everything you need with a single statement:
use nros::prelude::*;Re-exports§
pub use crate::NodeExecutorRuntime;pub use crate::SourceMetadataExport;pub use crate::ActionTag;pub use crate::Callback;pub use crate::CallbackEffectKind;pub use crate::CallbackEffects;pub use crate::DeclaredNode;pub use crate::DeclaredNodeRuntime;pub use crate::EntityKind;pub use crate::MetadataRecorder;pub use crate::Node;pub use crate::NodeActionClient;pub use crate::NodeActionServer;pub use crate::NodeContext;pub use crate::NodeDeclError;pub use crate::NodeOptions;pub use crate::NodeParameter;pub use crate::NodePublisher;pub use crate::NodeResult;pub use crate::NodeRuntime;pub use crate::NodeRuntimeAdapter;pub use crate::NodeServiceClient;pub use crate::NodeServiceServer;pub use crate::NodeSubscription;pub use crate::NodeTimer;pub use crate::ParameterDefault;pub use crate::RuntimeNodeRecord;pub use crate::ServiceTag;pub use crate::SourceLocationMetadata;pub use crate::SourceNameKind;pub use crate::SubscriptionTag;pub use crate::node;pub use crate::record_node_metadata;pub use crate::register_node;
Macros§
- node
- Export a Rust type implementing
nros::Nodeas the package node.
Structs§
- CdrReader
- CDR reader for deserialization
- CdrWriter
- CDR writer for serialization.
- Clock
- A clock for querying time
- Duration
- ROS Duration representation
- Embedded
Publisher - Typed publisher handle.
- Embedded
Service Client - Typed service client handle with internal buffers.
- Executor
- Executor
Config - Configuration for opening an embedded executor session.
- Feedback
Stream - A stream of feedback messages from an action server.
- GoalId
- Unique identifier for a goal
- Goal
Info - Information about a goal
- Goal
Status Stamped - Goal status with associated goal info
- Guard
Condition Handle - Handle for triggering a guard condition from outside the executor.
- Handle
Id - Opaque handle identifier returned by registration methods.
- Handle
Set - A set of handle IDs, represented as a bitset.
- Lifecycle
Polling Node - Standalone lifecycle state machine for
no_stdenvironments. - Logger
- A logger associated with a ROS node
- Mandatory
Parameter - A parameter that must always have a value
- Message
Info - Metadata about a received message
- Node
Config - Node configuration
- Node
Handle - Backend-agnostic node — borrows the session to create typed entities.
- Optional
Parameter - A parameter that may or may not have a value
- Parameter
Builder - Builder for declaring a typed parameter
- Parameter
Server - Parameter server with static storage
- Promise
- A pending reply from a non-blocking service or action call.
- Publisher
Handle - Handle to a publisher
- Publisher
Options - Options for creating a publisher
- QosSettings
- Full DDS-shaped QoS profile. Matches the field set of upstream
rmw_qos_profile_t. - Read
Only Parameter - A parameter whose value cannot be changed after declaration
- Spin
Once Result - Result of a single spin iteration
- Spin
Options - Options controlling blocking spin behavior.
- Spin
Period Polling Result - Result from a single period of polling execution (
no_stdcompatible). - Spin
Period Result - Result from a single period with wall-clock measurement (
stdonly). - Standalone
Node - ROS 2 Node for embedded systems
- Subscriber
Handle - Handle to a subscriber
- Subscriber
Options - Options for creating a subscriber
- Subscription
- Typed subscription handle with internal receive buffer.
- Time
- ROS Time representation
- Timer
Duration - Duration type for timer periods
- Timer
Handle - A handle to a timer stored in a node
- Topic
Info - Topic information for pub/sub
Enums§
- Clock
Type - Type of clock to use for time queries
- Goal
Response - Goal accept/reject response codes
- Goal
Status - Goal status states
- Invocation
Mode - Per-callback invocation mode.
- Lifecycle
Error - Error type for lifecycle transitions.
- Lifecycle
State - Lifecycle state (REP-2002)
- Lifecycle
Transition - Lifecycle transition (REP-2002)
- Node
Error - Error type for generic embedded node operations.
- Parameter
Error - Error type for typed parameter operations
- Parameter
Type - ROS 2 parameter types
- Parameter
Value - Parameter value container
- QosDurability
Policy - QoS durability policy
- QosHistory
Policy - QoS history policy
- QosReliability
Policy - QoS reliability policy
- Session
Mode - Session mode
- Timer
Mode - Timer mode (repeating, one-shot, or inert)
- Transition
Result - Result of a lifecycle transition callback.
- Transport
Error - Transport error types.
- Trigger
- Executor-level trigger condition.
Traits§
- Deserialize
- Trait for types that can be deserialized from CDR format
- Parameter
Variant - Trait for types that can be used as typed parameters
- RosAction
- Trait for ROS 2 action types
- RosMessage
- Trait for ROS message types
- RosService
- Trait for ROS service types
- Serialize
- Trait for types that can be serialized to CDR format
Type Aliases§
- Lifecycle
Callback Fn - Lifecycle callback function pointer (
no_stdcompatible). - Timer
Callback Fn - Timer callback as a bare function pointer (
no_std, no heap required).