-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,38 @@ | ||
using System.Collections.Generic; | ||
using Unity.Robotics.ROSTCPConnector.MessageGeneration; | ||
|
||
|
||
namespace RosMessageTypes.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionAction : Action<ObjectRecognitionActionGoal, ObjectRecognitionActionResult, ObjectRecognitionActionFeedback, ObjectRecognitionGoal, ObjectRecognitionResult, ObjectRecognitionFeedback> | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognitionAction"; | ||
|
||
public ObjectRecognitionAction() : base() | ||
{ | ||
this.action_goal = new ObjectRecognitionActionGoal(); | ||
this.action_result = new ObjectRecognitionActionResult(); | ||
this.action_feedback = new ObjectRecognitionActionFeedback(); | ||
} | ||
|
||
public override List<byte[]> SerializationStatements() | ||
{ | ||
var listOfSerializations = new List<byte[]>(); | ||
listOfSerializations.AddRange(this.action_goal.SerializationStatements()); | ||
listOfSerializations.AddRange(this.action_result.SerializationStatements()); | ||
listOfSerializations.AddRange(this.action_feedback.SerializationStatements()); | ||
|
||
return listOfSerializations; | ||
} | ||
|
||
public override int Deserialize(byte[] data, int offset) | ||
{ | ||
offset = this.action_goal.Deserialize(data, offset); | ||
offset = this.action_result.Deserialize(data, offset); | ||
offset = this.action_feedback.Deserialize(data, offset); | ||
|
||
return offset; | ||
} | ||
|
||
} | ||
} |
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,41 @@ | ||
using System.Collections.Generic; | ||
using Unity.Robotics.ROSTCPConnector.MessageGeneration; | ||
using RosMessageTypes.Std; | ||
using RosMessageTypes.Actionlib; | ||
|
||
namespace RosMessageTypes.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionActionFeedback : ActionFeedback<ObjectRecognitionFeedback> | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognitionActionFeedback"; | ||
|
||
public ObjectRecognitionActionFeedback() : base() | ||
{ | ||
this.feedback = new ObjectRecognitionFeedback(); | ||
} | ||
|
||
public ObjectRecognitionActionFeedback(Header header, GoalStatus status, ObjectRecognitionFeedback feedback) : base(header, status) | ||
{ | ||
this.feedback = feedback; | ||
} | ||
public override List<byte[]> SerializationStatements() | ||
{ | ||
var listOfSerializations = new List<byte[]>(); | ||
listOfSerializations.AddRange(this.header.SerializationStatements()); | ||
listOfSerializations.AddRange(this.status.SerializationStatements()); | ||
listOfSerializations.AddRange(this.feedback.SerializationStatements()); | ||
|
||
return listOfSerializations; | ||
} | ||
|
||
public override int Deserialize(byte[] data, int offset) | ||
{ | ||
offset = this.header.Deserialize(data, offset); | ||
offset = this.status.Deserialize(data, offset); | ||
offset = this.feedback.Deserialize(data, offset); | ||
|
||
return offset; | ||
} | ||
|
||
} | ||
} |
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,41 @@ | ||
using System.Collections.Generic; | ||
using Unity.Robotics.ROSTCPConnector.MessageGeneration; | ||
using RosMessageTypes.Std; | ||
using RosMessageTypes.Actionlib; | ||
|
||
namespace RosMessageTypes.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionActionGoal : ActionGoal<ObjectRecognitionGoal> | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognitionActionGoal"; | ||
|
||
public ObjectRecognitionActionGoal() : base() | ||
{ | ||
this.goal = new ObjectRecognitionGoal(); | ||
} | ||
|
||
public ObjectRecognitionActionGoal(Header header, GoalID goal_id, ObjectRecognitionGoal goal) : base(header, goal_id) | ||
{ | ||
this.goal = goal; | ||
} | ||
public override List<byte[]> SerializationStatements() | ||
{ | ||
var listOfSerializations = new List<byte[]>(); | ||
listOfSerializations.AddRange(this.header.SerializationStatements()); | ||
listOfSerializations.AddRange(this.goal_id.SerializationStatements()); | ||
listOfSerializations.AddRange(this.goal.SerializationStatements()); | ||
|
||
return listOfSerializations; | ||
} | ||
|
||
public override int Deserialize(byte[] data, int offset) | ||
{ | ||
offset = this.header.Deserialize(data, offset); | ||
offset = this.goal_id.Deserialize(data, offset); | ||
offset = this.goal.Deserialize(data, offset); | ||
|
||
return offset; | ||
} | ||
|
||
} | ||
} |
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,41 @@ | ||
using System.Collections.Generic; | ||
using Unity.Robotics.ROSTCPConnector.MessageGeneration; | ||
using RosMessageTypes.Std; | ||
using RosMessageTypes.Actionlib; | ||
|
||
namespace RosMessageTypes.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionActionResult : ActionResult<ObjectRecognitionResult> | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognitionActionResult"; | ||
|
||
public ObjectRecognitionActionResult() : base() | ||
{ | ||
this.result = new ObjectRecognitionResult(); | ||
} | ||
|
||
public ObjectRecognitionActionResult(Header header, GoalStatus status, ObjectRecognitionResult result) : base(header, status) | ||
{ | ||
this.result = result; | ||
} | ||
public override List<byte[]> SerializationStatements() | ||
{ | ||
var listOfSerializations = new List<byte[]>(); | ||
listOfSerializations.AddRange(this.header.SerializationStatements()); | ||
listOfSerializations.AddRange(this.status.SerializationStatements()); | ||
listOfSerializations.AddRange(this.result.SerializationStatements()); | ||
|
||
return listOfSerializations; | ||
} | ||
|
||
public override int Deserialize(byte[] data, int offset) | ||
{ | ||
offset = this.header.Deserialize(data, offset); | ||
offset = this.status.Deserialize(data, offset); | ||
offset = this.result.Deserialize(data, offset); | ||
|
||
return offset; | ||
} | ||
|
||
} | ||
} |
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,37 @@ | ||
//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.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionFeedback : Message | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognition"; | ||
|
||
// no feedback | ||
|
||
public ObjectRecognitionFeedback() | ||
{ | ||
} | ||
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 "ObjectRecognitionFeedback: "; | ||
} | ||
} | ||
} |
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,65 @@ | ||
//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.ObjectRecognition | ||
{ | ||
public class ObjectRecognitionGoal : Message | ||
{ | ||
public const string RosMessageName = "object_recognition_msgs-master/ObjectRecognition"; | ||
|
||
// Optional ROI to use for the object detection | ||
public bool use_roi; | ||
public float[] filter_limits; | ||
|
||
public ObjectRecognitionGoal() | ||
{ | ||
this.use_roi = false; | ||
this.filter_limits = new float[0]; | ||
} | ||
|
||
public ObjectRecognitionGoal(bool use_roi, float[] filter_limits) | ||
{ | ||
this.use_roi = use_roi; | ||
this.filter_limits = filter_limits; | ||
} | ||
public override List<byte[]> SerializationStatements() | ||
{ | ||
var listOfSerializations = new List<byte[]>(); | ||
listOfSerializations.Add(BitConverter.GetBytes(this.use_roi)); | ||
|
||
listOfSerializations.Add(BitConverter.GetBytes(filter_limits.Length)); | ||
foreach(var entry in filter_limits) | ||
listOfSerializations.Add(BitConverter.GetBytes(entry)); | ||
|
||
return listOfSerializations; | ||
} | ||
|
||
public override int Deserialize(byte[] data, int offset) | ||
{ | ||
this.use_roi = BitConverter.ToBoolean(data, offset); | ||
offset += 1; | ||
|
||
var filter_limitsArrayLength = DeserializeLength(data, offset); | ||
offset += 4; | ||
this.filter_limits= new float[filter_limitsArrayLength]; | ||
for(var i = 0; i < filter_limitsArrayLength; i++) | ||
{ | ||
this.filter_limits[i] = BitConverter.ToSingle(data, offset); | ||
offset += 4; | ||
} | ||
|
||
return offset; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return "ObjectRecognitionGoal: " + | ||
"\nuse_roi: " + use_roi.ToString() + | ||
"\nfilter_limits: " + System.String.Join(", ", filter_limits.ToList()); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.