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

1 Ansicht (letzte 30 Tage)
nan jiang
nan jiang am 24 Jul. 2020
Erneut geöffnet: Rena Berman am 12 Okt. 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

Antworten (0)

Kategorien

Mehr zu Robotics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by