roslib
    Preparing search index...

    Class Param<T>

    A ROS parameter.

    Type Parameters

    • T = unknown
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string
    ros: Ros

    Methods

    • Delete this parameter on the ROS server.

      Parameters

      • callback: (message: DeleteParamResponse) => void

        The callback function.

      • OptionalfailedCallback: (error: string) => void = console.error

        The callback function when the service call failed or the parameter deletion was unsuccessful.

      Returns void

    • Fetch the value of the param.

      Parameters

      • callback: (value: T) => void

        The callback function.

      • OptionalfailedCallback: (error: string) => void = console.error

        The callback function when the service call failed or the parameter retrieval was unsuccessful.

      Returns void

    • Set the value of the param in ROS.

      Parameters

      • value: T

        The value to set param to.

      • Optionalcallback: (message: SetParamResponse) => void

        The callback function.

      • OptionalfailedCallback: (error: string) => void = console.error

        The callback function when the service call failed or the parameter setting was unsuccessful.

      Returns void