Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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.