Struct r2r::visualization_msgs::msg::Marker
source · pub struct Marker {Show 19 fields
pub header: Header,
pub ns: String,
pub id: i32,
pub type_: i32,
pub action: i32,
pub pose: Pose,
pub scale: Vector3,
pub color: ColorRGBA,
pub lifetime: Duration,
pub frame_locked: bool,
pub points: Vec<Point>,
pub colors: Vec<ColorRGBA>,
pub texture_resource: String,
pub texture: CompressedImage,
pub uv_coordinates: Vec<UVCoordinate>,
pub text: String,
pub mesh_resource: String,
pub mesh_file: MeshFile,
pub mesh_use_embedded_materials: bool,
}
Fields§
§header: Header
§ns: String
§id: i32
§type_: i32
§action: i32
§pose: Pose
§scale: Vector3
§color: ColorRGBA
§lifetime: Duration
§frame_locked: bool
§points: Vec<Point>
§colors: Vec<ColorRGBA>
§texture_resource: String
§texture: CompressedImage
§uv_coordinates: Vec<UVCoordinate>
§text: String
§mesh_resource: String
§mesh_file: MeshFile
§mesh_use_embedded_materials: bool
Implementations§
source§impl Marker
impl Marker
pub const ADD: _bindgen_ty_228 = visualization_msgs__msg__Marker__ADD
pub const ARROW: _bindgen_ty_216 = visualization_msgs__msg__Marker__ARROW
pub const CUBE: _bindgen_ty_217 = visualization_msgs__msg__Marker__CUBE
pub const CUBE_LIST: _bindgen_ty_222 = visualization_msgs__msg__Marker__CUBE_LIST
pub const CYLINDER: _bindgen_ty_219 = visualization_msgs__msg__Marker__CYLINDER
pub const DELETE: _bindgen_ty_230 = visualization_msgs__msg__Marker__DELETE
pub const DELETEALL: _bindgen_ty_231 = visualization_msgs__msg__Marker__DELETEALL
pub const LINE_LIST: _bindgen_ty_221 = visualization_msgs__msg__Marker__LINE_LIST
pub const LINE_STRIP: _bindgen_ty_220 = visualization_msgs__msg__Marker__LINE_STRIP
pub const MESH_RESOURCE: _bindgen_ty_226 = visualization_msgs__msg__Marker__MESH_RESOURCE
pub const MODIFY: _bindgen_ty_229 = visualization_msgs__msg__Marker__MODIFY
pub const POINTS: _bindgen_ty_224 = visualization_msgs__msg__Marker__POINTS
pub const SPHERE: _bindgen_ty_218 = visualization_msgs__msg__Marker__SPHERE
pub const SPHERE_LIST: _bindgen_ty_223 = visualization_msgs__msg__Marker__SPHERE_LIST
pub const TEXT_VIEW_FACING: _bindgen_ty_225 = visualization_msgs__msg__Marker__TEXT_VIEW_FACING
pub const TRIANGLE_LIST: _bindgen_ty_227 = visualization_msgs__msg__Marker__TRIANGLE_LIST
Trait Implementations§
source§impl<'de> Deserialize<'de> for Marker
impl<'de> Deserialize<'de> for Marker
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl WrappedTypesupport for Marker
impl WrappedTypesupport for Marker
type CStruct = visualization_msgs__msg__Marker
fn get_ts() -> &'static rosidl_message_type_support_t
fn create_msg() -> *mut visualization_msgs__msg__Marker
fn destroy_msg(msg: *mut visualization_msgs__msg__Marker)
fn from_native(msg: &Self::CStruct) -> Marker
fn copy_to_native(&self, msg: &mut Self::CStruct)
source§fn to_serialized_bytes(&self) -> Result<Vec<u8>>
fn to_serialized_bytes(&self) -> Result<Vec<u8>>
This serializes the message using ROS2 methods.
source§fn from_serialized_bytes(data: &[u8]) -> Result<Self>
fn from_serialized_bytes(data: &[u8]) -> Result<Self>
This deserializes the message using ROS2 methods.
impl StructuralPartialEq for Marker
Auto Trait Implementations§
impl Freeze for Marker
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnwindSafe for Marker
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more