/** * Create a new UInt16 based on the given Message. Any missing values will * be set to their defaults. * * @param m * The Message to parse. * @return A UInt16 message based on the given Message. */ public static UInt16 fromMessage(Message m) { // get it from the JSON object return UInt16.fromJsonObject(m.toJsonObject()); }
/** * Create a new Int64MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A Int64MultiArray message based on the given Message. */ public static Int64MultiArray fromMessage(Message m) { // get it from the JSON object return Int64MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new Int8MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A Int8MultiArray message based on the given Message. */ public static Int8MultiArray fromMessage(Message m) { // get it from the JSON object return Int8MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new Int32MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A Int32MultiArray message based on the given Message. */ public static Int32MultiArray fromMessage(Message m) { // get it from the JSON object return Int32MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new Float32 based on the given Message. Any missing values will * be set to their defaults. * * @param m * The Message to parse. * @return A Float32 message based on the given Message. */ public static Float32 fromMessage(Message m) { // get it from the JSON object return Float32.fromJsonObject(m.toJsonObject()); }
/** * Create a new ByteMultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A ByteMultiArray message based on the given Message. */ public static ByteMultiArray fromMessage(Message m) { // get it from the JSON object return ByteMultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new UInt8MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A UInt8MultiArray message based on the given Message. */ public static UInt8MultiArray fromMessage(Message m) { // get it from the JSON object return UInt8MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new PoseWithCovarianceStamped based on the given Message. Any * missing values will be set to their defaults. * * @param m * The Message to parse. * @return A PoseWithCovarianceStamped message based on the given Message. */ public static PoseWithCovarianceStamped fromMessage(Message m) { // get it from the JSON object return PoseWithCovarianceStamped.fromJsonObject(m.toJsonObject()); }
/** * Create a new String based on the given Message. Any missing values will * be set to their defaults. * * @param m * The Message to parse. * @return A String message based on the given Message. */ public static String fromMessage(Message m) { // get it from the JSON object return String.fromJsonObject(m.toJsonObject()); }
/** * Create a new Duration based on the given Message. Any missing values will * be set to their defaults. * * @param m * The Message to parse. * @return A Duration message based on the given Message. */ public static Duration fromMessage(Message m) { // get it from the JSON object return Duration.fromJsonObject(m.toJsonObject()); }
/** * Create a new PointStamped based on the given Message. Any missing values * will be set to their defaults. * * @param m * The Message to parse. * @return A PointStamped message based on the given Message. */ public static PointStamped fromMessage(Message m) { // get it from the JSON object return PointStamped.fromJsonObject(m.toJsonObject()); }
/** * Create a new PolygonStamped based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A PolygonStamped message based on the given Message. */ public static PolygonStamped fromMessage(Message m) { // get it from the JSON object return PolygonStamped.fromJsonObject(m.toJsonObject()); }
/** * Create a new Pose2D based on the given Message. Any missing values will * be set to their defaults. * * @param m * The Message to parse. * @return A Pose2D message based on the given Message. */ public static Pose2D fromMessage(Message m) { // get it from the JSON object return Pose2D.fromJsonObject(m.toJsonObject()); }
/** * Create a new Float32MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A Float32MultiArray message based on the given Message. */ public static Float32MultiArray fromMessage(Message m) { // get it from the JSON object return Float32MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new Int64 based on the given Message. Any missing values will be * set to their defaults. * * @param m * The Message to parse. * @return A Int64 message based on the given Message. */ public static Int64 fromMessage(Message m) { // get it from the JSON object return Int64.fromJsonObject(m.toJsonObject()); }
/** * Create a new Quaternion based on the given Message. Any missing values * will be set to their defaults. * * @param m * The Message to parse. * @return A Quaternion message based on the given Message. */ public static Quaternion fromMessage(Message m) { // get it from the JSON object return Quaternion.fromJsonObject(m.toJsonObject()); }
/** * Create a new Pose based on the given Message. Any missing values will be * set to their defaults. * * @param m * The Message to parse. * @return A Pose message based on the given Message. */ public static Pose fromMessage(Message m) { // get it from the JSON object return Pose.fromJsonObject(m.toJsonObject()); }
/** * Create a new MultiArrayLayout based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A MultiArrayLayout message based on the given Message. */ public static MultiArrayLayout fromMessage(Message m) { // get it from the JSON object return MultiArrayLayout.fromJsonObject(m.toJsonObject()); }
/** * Create a new UInt32MultiArray based on the given Message. Any missing * values will be set to their defaults. * * @param m * The Message to parse. * @return A UInt32MultiArray message based on the given Message. */ public static UInt32MultiArray fromMessage(Message m) { // get it from the JSON object return UInt32MultiArray.fromJsonObject(m.toJsonObject()); }
/** * Create a new WrenchStamped based on the given Message. Any missing values * will be set to their defaults. * * @param m * The Message to parse. * @return A WrenchStamped message based on the given Message. */ public static WrenchStamped fromMessage(Message m) { // get it from the JSON object return WrenchStamped.fromJsonObject(m.toJsonObject()); }