Add a pose to the Pick and Place Trajectory Planner

Ouverte
#370 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
csharp, unity
Domaine
robotics

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C#
Étoiles
2.6k
Forks
473
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Unity-Technologies/Unity-Robotics-Hub

Toutes les issues de Unity-Technologies/Unity-Robotics-Hub

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.