In Gazebo environment, how to pick an item added by spawnModel() function

2 visualizaciones (últimos 30 días)
nan jiang
nan jiang el 24 de Jul. de 2020
Abierta de nuevo: Rena Berman el 12 de Oct. de 2020
1) Start a ROS-based simulator for a KINOVA Gen3 robot and configure the MATLAB connection with the robot simulator.
2) I add an objective (coke can) by using the spawnModel() function as:
can = GazeboModel('coke_can','gazeboDB');
itemLocationXYZ = [0.32 -0.3028 0.5];
spawnModel(gazebo, can, [itemLocationXY(1) itemLocationXY(2) itemLocationXY(3)]);
3) I input the item location itemLocationXYZ into the the coordinator, and execute the robot to grabe the can according to the feeded information (coordinator). However, it seems like the inputed location does not fit the coordinate system in the robot.
coordinator.Parts = {};
part.centerPoint = [itemLocationXYZ(1), itemLocationXYZ(2), itemLocationXYZ(3)];
coordinator.Parts{i} = part;
Seems I need a transformation between the input position and the end-effector

Respuestas (0)

Categorías

Más información sobre Robotics en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by