Add a pose to the Pick and Place Trajectory Planner

Offen
#370 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
csharp, unity
Bereich
robotics

Rechercherichtung

Start with the Unity Robotics Hub Pick and Place tutorial and inspect the trajectory planner's pose sequence and articulation-body control. Determine how the initial pose is represented and whether the requested return action belongs in the sequence or behind a separate button. Done means the robot reliably returns to its original pose.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hi guys,
First of all it is needed to sey that I am new to programming with just some basic knowledge in C#, Python and C++.
I am working on the Unity Robotics Hub's Pick and Place tutorial and I would like to add another pose to the sequence (the initial one) so to make the robot came back to its original position. I have no clue on how to do that so any kind of info or starting point would be appreciated and a step by step solution would be loved.
Making a new button to make the robot came back not in sequence with the other pose would be even better but I do not know if that is harder/easier/possible at all.

By now i have tried to do it without using movit but with just a C# script:

`using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Threading;

public class SnapToPosition : MonoBehaviour
{
private Vector3 snapPosition;
private Quaternion originalRotationValue;
float rotationResetSpeed = 1.0f;

 private void Start()
 {
     snapPosition = this.transform.position;
     originalRotationValue = transform.rotation;
 }

 public void MoveObject ()
 {
     this.transform.position = snapPosition;
     transform.rotation = Quaternion.Slerp(transform.rotation, originalRotationValue, Time.time * rotationResetSpeed); 
     
 }

}`

This does not work properly as it change the position of the body just for a second and only if the button is clicked continuously and suddenly cames back in the end pose of the pick and place. Not sure to have expressed myselfe properly but it is difficult to describes it. The importan point is that the button does not work and as I understand that is due to the articulation body properties. This i why I suppose tha it is necessary to pass through MoveIt
Thanks for your help.

Vorherrschende Sprache
C#
Sterne
2.6k
Forks
473
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Unity-Technologies/Unity-Robotics-Hub

Alle Issues in Unity-Technologies/Unity-Robotics-Hub

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.