您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
807 B
27 行
807 B
using RosMessageTypes.NiryoMoveit;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
|
|
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
|
|
|
|
[VisualizeMessage(typeof(MoverServiceRequest))]
|
|
public class MoverServiceRequest_Visualizer : MessageVisualizerDrawing<MoverServiceRequest>
|
|
{
|
|
public MoverServiceRequest_Visualizer(string topic, Message msg) :
|
|
base(topic, msg)
|
|
{
|
|
}
|
|
|
|
public override void GUI()
|
|
{
|
|
GUILayout.Label(message.ToString());
|
|
}
|
|
|
|
public override void DrawVisual()
|
|
{
|
|
MessageVisualizations.Draw<FLU>(drawing, message.pick_pose, Color.cyan, "pick", 0.01f);
|
|
MessageVisualizations.Draw<FLU>(drawing, message.place_pose, Color.red, "place", 0.01f);
|
|
}
|
|
}
|
|
|