浏览代码

Fixed package reference

/laurie-Visualizers
LaurieCheers 4 年前
当前提交
dcb8f49b
共有 12 个文件被更改,包括 48 次插入69 次删除
  1. 2
      tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/Moveit/msg/RobotTrajectory.cs
  2. 2
      tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/msg/NiryoMoveitJoints.cs
  3. 2
      tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/msg/NiryoTrajectory.cs
  4. 2
      tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/srv/MoverServiceRequest.cs
  5. 2
      tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/srv/MoverServiceResponse.cs
  6. 17
      tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/MoverServiceRequest_Visualizer.cs
  7. 48
      tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/MoverServiceResponse_Visualizer.cs
  8. 3
      tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/SourceDestinationPublisher.cs
  9. 10
      tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/TrajectoryPlanner.cs
  10. 2
      tutorials/pick_and_place/PickAndPlaceProject/Packages/manifest.json
  11. 16
      tutorials/pick_and_place/PickAndPlaceProject/Assets/DebugDrawTest.cs
  12. 11
      tutorials/pick_and_place/PickAndPlaceProject/Assets/DebugDrawTest.cs.meta

2
tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/Moveit/msg/RobotTrajectory.cs


using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.Moveit
{

2
tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/msg/NiryoMoveitJoints.cs


using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.NiryoMoveit
{

2
tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/msg/NiryoTrajectory.cs


using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.NiryoMoveit
{

2
tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/srv/MoverServiceRequest.cs


using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.NiryoMoveit
{

2
tutorials/pick_and_place/PickAndPlaceProject/Assets/RosMessages/NiryoMoveit/srv/MoverServiceResponse.cs


using System.Linq;
using System.Collections.Generic;
using System.Text;
using RosMessageGeneration;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.NiryoMoveit
{

17
tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/MoverServiceRequest_Visualizer.cs


using RosMessageGeneration;
using ROSGeometry;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
public override void DrawGUI(DebugDraw.Drawing drawing, MoverServiceRequest message)
public MoverServiceRequest_Visualizer(string topic, Message msg) :
base(topic, msg)
{
}
public override void GUI()
public override void Draw(DebugDraw.Drawing drawing, MoverServiceRequest message)
public override void DrawVisual()
MessageVisualizations<FLU>.DrawPose(drawing, message.pick_pose, Color.cyan, "pick", 0.01f);
MessageVisualizations<FLU>.DrawPose(drawing, message.place_pose, Color.red, "place", 0.01f);
MessageVisualizations.Draw<FLU>(drawing, message.pick_pose, Color.cyan, "pick", 0.01f);
MessageVisualizations.Draw<FLU>(drawing, message.place_pose, Color.red, "place", 0.01f);
}
}

48
tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/MoverServiceResponse_Visualizer.cs


using RosMessageGeneration;
using RosMessageTypes.NiryoMoveit;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ROSGeometry;
using RosMessageTypes.Moveit;
using RosMessageTypes.Trajectory;
[VisualizeMessage(typeof(MoverServiceResponse))]
public class MoverServiceResponse_Visualizer : MessageVisualizerDrawing<MoverServiceResponse>
{
public override void DrawGUI(DebugDraw.Drawing drawing, MoverServiceResponse message)
{
base.DrawGUI(drawing, message);
}
public override void Draw(DebugDraw.Drawing drawing, MoverServiceResponse message)
{
}
}
using RosMessageGeneration;
using RosMessageTypes.NiryoMoveit;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
using RosMessageTypes.Moveit;
using RosMessageTypes.Trajectory;
[VisualizeMessage(typeof(MoverServiceResponse))]
public class MoverServiceResponse_Visualizer : MessageVisualizerDrawing<MoverServiceResponse>
{
public MoverServiceResponse_Visualizer(string topic, Message msg):
base(topic, msg)
{
}
public override void GUI()
{
GUILayout.Label(message.ToString());
}
public override void DrawVisual()
{
}
}

3
tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/SourceDestinationPublisher.cs


using RosMessageTypes.Geometry;
using RosMessageTypes.NiryoMoveit;
using UnityEngine;
using ROSGeometry;
using Unity.Robotics.ROSTCPConnector;
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
using Quaternion = UnityEngine.Quaternion;
public class SourceDestinationPublisher : MonoBehaviour

10
tutorials/pick_and_place/PickAndPlaceProject/Assets/Scripts/TrajectoryPlanner.cs


using System.Collections;
using System.Linq;
using RosMessageTypes.Geometry;
using ROSGeometry;
using Quaternion = UnityEngine.Quaternion;
using RosImage = RosMessageTypes.Sensor.Image;
using Transform = UnityEngine.Transform;
using Vector3 = UnityEngine.Vector3;
using Unity.Robotics.ROSTCPConnector;
using Unity.Robotics.ROSTCPConnector.ROSGeometry;
public class TrajectoryPlanner : MonoBehaviour
{

2
tutorials/pick_and_place/PickAndPlaceProject/Packages/manifest.json


"com.unity.ide.rider": "2.0.7",
"com.unity.ide.visualstudio": "2.0.3",
"com.unity.ide.vscode": "1.2.2",
"com.unity.robotics.ros-tcp-connector": "file:C:/Users/laurie.cheers/Documents/GitHub/ROS-TCP-Connector",
"com.unity.robotics.ros-tcp-connector": "https://github.com/Unity-Technologies/ROS-TCP-Connector.git?path=/com.unity.robotics.ros-tcp-connector#dev",
"com.unity.robotics.urdf-importer": "https://github.com/Unity-Technologies/URDF-Importer.git#v0.1.2",
"com.unity.test-framework": "1.1.18",
"com.unity.textmeshpro": "3.0.1",

16
tutorials/pick_and_place/PickAndPlaceProject/Assets/DebugDrawTest.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FLU = ROSGeometry.FLU;
using RVector3 = ROSGeometry.Vector3<ROSGeometry.FLU>;
using static ROSGeometry.CoordinateSpaceExtensions;
public class DebugDrawTest : MonoBehaviour
{
public GameObject pivot;
void Start()
{
DebugDraw.Drawing drawing = DebugDraw.instance.CreateDrawing();
MessageVisualizations<FLU>.DrawQuaternion(drawing, pivot.transform.rotation.To<FLU>(), pivot.transform.position);
}
}

11
tutorials/pick_and_place/PickAndPlaceProject/Assets/DebugDrawTest.cs.meta


fileFormatVersion: 2
guid: f4875bae0f034f742a49babbd5510b63
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存