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

2 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Robotics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by