Add a pose to the Pick and Place Trajectory Planner

Aperta
#370 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp, unity
Ambito
robotics

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
2.6k
Fork
473
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Unity-Technologies/Unity-Robotics-Hub

Tutte le issue di Unity-Technologies/Unity-Robotics-Hub

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.