Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RosMessageGeneration namespace change #61

Merged
merged 1 commit into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.IO;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEngine;
#if UNITY_2020_2_OR_NEWER

using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.IO;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEngine;
#if UNITY_2020_2_OR_NEWER

using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public void WrapActionSections(string type)

string imports =
"using System.Collections.Generic;\n"+
"using RosMessageGeneration;\n" +
"using Unity.Robotics.ROSTCPConnector.MessageGeneration;\n" +
"using RosMessageTypes.Std;\n" +
"using RosMessageTypes.Actionlib;\n\n";

Expand Down Expand Up @@ -366,7 +366,7 @@ public void WrapAction()

string imports =
"using System.Collections.Generic;\n"+
"using RosMessageGeneration;\n" +
"using Unity.Robotics.ROSTCPConnector.MessageGeneration;\n" +
"\n\n";

symbolTable = new Dictionary<string, string>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private string GenerateImports()
importsStr += "using System.Linq;\n";
importsStr += "using System.Collections.Generic;\n";
importsStr += "using System.Text;\n";
importsStr += "using RosMessageGeneration;\n";
importsStr += "using Unity.Robotics.ROSTCPConnector.MessageGeneration;\n";

if (imports.Count > 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.RosTcpEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.RosTcpEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.RosTcpEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.RosTcpEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using RosMessageTypes.Std;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Std;

namespace RosMessageTypes.Actionlib
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Actionlib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using RosMessageTypes.Std;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Std;

namespace RosMessageTypes.Actionlib
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using RosMessageTypes.Std;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Std;

namespace RosMessageTypes.Diagnostic
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Diagnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Diagnostic
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Diagnostic
{
public class AddDiagnosticsRequest : Message
{
public const string RosMessageName = "diagnostic_msgs/AddDiagnostics";

// This service is used as part of the process for loading analyzers at runtime,
// and should be used by a loader script or program, not as a standalone service.
// Information about dynamic addition of analyzers can be found at
// http://wiki.ros.org/diagnostics/Tutorials/Adding%20Analyzers%20at%20Runtime
// The load_namespace parameter defines the namespace where parameters for the
// initialization of analyzers in the diagnostic aggregator have been loaded. The
// value should be a global name (i.e. /my/name/space), not a relative
// (my/name/space) or private (~my/name/space) name. Analyzers will not be added
// if a non-global name is used. The call will also fail if the namespace
// contains parameters that follow a namespace structure that does not conform to
// that expected by the analyzer definitions. See
// http://wiki.ros.org/diagnostics/Tutorials/Configuring%20Diagnostic%20Aggregators
// and http://wiki.ros.org/diagnostics/Tutorials/Using%20the%20GenericAnalyzer
// for examples of the structure of yaml files which are expected to have been
// loaded into the namespace.
public string load_namespace;

public AddDiagnosticsRequest()
{
this.load_namespace = "";
}

public AddDiagnosticsRequest(string load_namespace)
{
this.load_namespace = load_namespace;
}
public override List<byte[]> SerializationStatements()
{
var listOfSerializations = new List<byte[]>();
listOfSerializations.Add(SerializeString(this.load_namespace));

return listOfSerializations;
}

public override int Deserialize(byte[] data, int offset)
{
var load_namespaceStringBytesLength = DeserializeLength(data, offset);
offset += 4;
this.load_namespace = DeserializeString(data, offset, load_namespaceStringBytesLength);
offset += load_namespaceStringBytesLength;

return offset;
}

public override string ToString()
{
return "AddDiagnosticsRequest: " +
"\nload_namespace: " + load_namespace.ToString();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Diagnostic
{
public class AddDiagnosticsResponse : Message
{
public const string RosMessageName = "diagnostic_msgs/AddDiagnostics";

// True if diagnostic aggregator was updated with new diagnostics, False
// otherwise. A false return value means that either there is a bond in the
// aggregator which already used the requested namespace, or the initialization
// of analyzers failed.
public bool success;
// Message with additional information about the success or failure
public string message;

public AddDiagnosticsResponse()
{
this.success = false;
this.message = "";
}

public AddDiagnosticsResponse(bool success, string message)
{
this.success = success;
this.message = message;
}
public override List<byte[]> SerializationStatements()
{
var listOfSerializations = new List<byte[]>();
listOfSerializations.Add(BitConverter.GetBytes(this.success));
listOfSerializations.Add(SerializeString(this.message));

return listOfSerializations;
}

public override int Deserialize(byte[] data, int offset)
{
this.success = BitConverter.ToBoolean(data, offset);
offset += 1;
var messageStringBytesLength = DeserializeLength(data, offset);
offset += 4;
this.message = DeserializeString(data, offset, messageStringBytesLength);
offset += messageStringBytesLength;

return offset;
}

public override string ToString()
{
return "AddDiagnosticsResponse: " +
"\nsuccess: " + success.ToString() +
"\nmessage: " + message.ToString();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;

namespace RosMessageTypes.Diagnostic
{
public class SelfTestRequest : Message
{
public const string RosMessageName = "diagnostic_msgs/SelfTest";


public SelfTestRequest()
{
}
public override List<byte[]> SerializationStatements()
{
var listOfSerializations = new List<byte[]>();

return listOfSerializations;
}

public override int Deserialize(byte[] data, int offset)
{

return offset;
}

public override string ToString()
{
return "SelfTestRequest: ";
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading