.positions
## Problem Description ##
I have been attempting to modify the pick and place tutorial for panda arm from [this tutorial](http://docs.ros.org/kinetic/api/moveit_tutorials/html/doc/pick_place/pick_place_tutorial.html) for a bimanual pick and place.
I am working on a customised humanoid where there are 2 torso joints, and 5 joints on each arm and a 4 fingered hand attached to each hand. I am using ROS Kinetic on Ubuntu 16.04.
As told in [this answer](https://answers.ros.org/question/299183/pick-and-place-using-2-hands/), I have created 4 planning groups. Here are the relevant snippets from my SRDF files.
And my end effector is described as:
I also have a move group for the upper body of the robot, which includes the torso and both hands.
In the pick and place code, I have one function for opening the gripper and one function for closing the gripper, which includes all joints of the robot that would have a role to play for correctly grasping the object.
void openGripper(trajectory_msgs::JointTrajectory& posture)
{
// BEGIN_SUB_TUTORIAL open_gripper
/* Add both finger joints of panda robot. */
posture.joint_names.resize(12);
posture.joint_names[0] = "torso_1_joint";
posture.joint_names[1] = "torso_2_joint";
posture.joint_names[2] = "lh_arm_0_joint";
posture.joint_names[3] = "lh_arm_1_joint";
posture.joint_names[4] = "lh_arm_2_joint";
posture.joint_names[5] = "lh_arm_3_joint";
posture.joint_names[6] = "lh_arm_4_joint";
posture.joint_names[7] = "rh_arm_0_joint";
posture.joint_names[8] = "rh_arm_1_joint";
posture.joint_names[9] = "rh_arm_2_joint";
posture.joint_names[10] = "rh_arm_3_joint";
posture.joint_names[11] = "rh_arm_4_joint";
/* Set them as open, wide enough for the object to fit. */
posture.points.resize(1); //number of waypoints
posture.points[0].positions.resize(12); //number of joints
/*point p and joint j --- joint_names corresponds to points