Using the Stick to Collect Data
Last updated
Last updated
The following are good tips to keep in mind. You don't have to follow them very judiciously.
Have a lot of variations to the data. We encourage collecting around 20-25 demonstrations per task and environment. Try to make each demonstration different from the other. Ideally vary the starting points as shown in the graphic below.
Make sure the relevant objects are always visible in the frame while collecting the demos. The relevant objects can be the door/ door handle for task “Door Opening”, or the object you have to pick (Eg: Cup) in the task “Pick and Place”. This is usually helpful for visual servoing policies.
Another thing to keep in mind while collecting demos is to make sure to start and stop recording the demo at the right times. Ideally, you would want to start recording just before starting the demo and stop recording immediately after the demo is finished.
Be aware of the limitations of the robot while collecting demos. For example as humans we may be able to operate around tight spaces using the stick but the robot may not due to its base/ arm not being as flexible. Also tasks that may require long extension of arm can also be limiting since the hello-stretch’s arm can only extend for so long. Always good idea to double check the robots capabilities before collecting demos to avoid wasting time on trajectories that are just not possible to run on the hardware
Finally while recording the demos, try to keep your motion as smooth and stable as possible. Try to avoid shaking or having any noisy movements during the demos.
Video Link explaining how to collect demonstrations: Video link
Make sure the iPhone is installed in the correct orientation. When holding the stick straight, the camera lens should be on the bottom right side.
Make sure the camera mount is roughly at 75 degree tilt from the horizontal stick axis to get the same distribution of data as in HoNY. To confirm this tilt you can use iPhone app called Precise Level.
Steps to collect 1 trajectory demo:
Open the Record3D app and go to "Record" panel
Align your stick to the appropriate “starting” orientation and position for the trajectory.
Press the “Red” record button to start recording and immediately start moving the stick according to your demonstration.
Once the demonstration is complete, immediately press the “Red” button to stop recording
Repeat the above for multiple demonstration with varying starting positions and trajectory motions