Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

RosMessageTypes.Std source code

Discussion in 'Robotics' started by mbulucay, Jun 24, 2022.

  1. mbulucay

    mbulucay

    Joined:
    Mar 21, 2022
    Posts:
    4
    Where can I find the source code of std_msgs for the ros-tcp connnector messages implementation.

    ex:
    Code (CSharp):
    1. namespace RosMessageTypes{
    2.  
    3. class Std{
    4. ....
    5. }
    6.  
    7. }
    I created a custom ros message something like this;

    float32 length
    float32 width
    std_msgs/String time

    then build these message in unity. Then unity gives me these script
    Code (CSharp):
    1.  
    2. namespace RosMessageTypes.AisData
    3. {
    4.     [Serializable]
    5.     public class AisDataMMsg : Message
    6.     {
    7.         public const string k_RosMessageName = "ais_data/AisDataM";
    8.         public override string RosMessageName => k_RosMessageName;
    9.  
    10.         public float length;
    11.         public float width;
    12.         public Std.StringMsg time;
    13.  
    14.         // constructor, toString etc..
    15.  
    16.  
    I want to see the Std.StringMsg implementation How can I find it?
     
    Last edited: Jun 24, 2022
  2. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    diegomazala_ and mbulucay like this.