A motion editor for designing arbitrary key frame based motions for Nao to be used in RoboCup 3D soccer simulation league.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5298bd2 Aug 3, 2018
Permalink
Failed to load latest commit information.
audio Added motion editor project files. Aug 5, 2017
behaviors Added motion editor project files. Aug 5, 2017
bodymodel Added motion editor project files. Aug 5, 2017
cmake Added motion editor project files. Aug 5, 2017
createdKicks Renamed sample kick motion file Aug 5, 2017
credit-logo Added motion editor project files. Aug 5, 2017
fonts Added motion editor project files. Aug 5, 2017
headers Added motion editor project files. Aug 5, 2017
icon32x32 Added motion editor project files. Aug 5, 2017
ikfast Added motion editor project files. Aug 5, 2017
kalman Added motion editor project files. Aug 5, 2017
libs Added motion editor project files. Aug 5, 2017
math Added motion editor project files. Aug 5, 2017
optimization Added motion editor project files. Aug 5, 2017
paramfiles Added motion editor project files. Aug 5, 2017
parser Added motion editor project files. Aug 5, 2017
particlefilter Added motion editor project files. Aug 5, 2017
rvdraw Added motion editor project files. Aug 5, 2017
servercomm Added motion editor project files. Aug 5, 2017
skills Added motion editor project files. Aug 5, 2017
utwalk Added motion editor project files. Aug 5, 2017
worldmodel Added motion editor project files. Aug 5, 2017
CMakeLists.txt Added motion editor project files. Aug 5, 2017
Change Summary.md Added motion editor project files. Aug 5, 2017
MotionEditor.cbp Added motion editor project files. Aug 5, 2017
README.md Updated ReadMe.md Aug 3, 2018
cleanProject.sh Added motion editor project files. Aug 5, 2017
creditwindow.cpp Added motion editor project files. Aug 5, 2017
creditwindow.h Added motion editor project files. Aug 5, 2017
creditwindow.ui Added motion editor project files. Aug 5, 2017
main.cpp Added motion editor project files. Aug 5, 2017
mainwindow.cpp Added motion editor project files. Aug 5, 2017
mainwindow.h Added motion editor project files. Aug 5, 2017
mainwindow.ui Added motion editor project files. Aug 5, 2017
moc_creditwindow.cpp Added motion editor project files. Aug 5, 2017
moc_creditwindow.cpp_parameters Added motion editor project files. Aug 5, 2017
moc_mainwindow.cpp Added motion editor project files. Aug 5, 2017
moc_mainwindow.cpp_parameters Added motion editor project files. Aug 5, 2017
moc_sendertoserver.cpp Added motion editor project files. Aug 5, 2017
moc_sendertoserver.cpp_parameters Added motion editor project files. Aug 5, 2017
moc_ui_mainwindow.cpp Added motion editor project files. Aug 5, 2017
moc_ui_mainwindow.cpp_parameters Added motion editor project files. Aug 5, 2017
resources.qrc Added motion editor project files. Aug 5, 2017
sendertoserver.cpp Added motion editor project files. Aug 5, 2017
sendertoserver.h Added motion editor project files. Aug 5, 2017
ui_creditwindow.h Added motion editor project files. Aug 5, 2017
ui_mainwindow.h Added motion editor project files. Aug 5, 2017

README.md

AIUT3D Motion Editor

  • This repository is a motion editor for RoboCup 3D soccer simulation developed by AIUT3D team. It is based on UT Austin Villa base code: https://github.com/LARG/utaustinvilla3d.

  • The motion editor can be used to design arbitrary key frame based motions for simulated Nao robot.

  • It is developed in the hope of being useful for RoboCup 3D soccer simulation teams.

Build Requirements

sudo apt-get install qt5-default

Build

  • cd to the motion editor root directory.
  • Run the following commands in the terminal:

cmake .

make

Run

  • Start rcssserver3d
  • Run Roboviz
  • Run the following command in the terminal:

./motionEditor

  • Set Nao body type
  • Reset Monitor by clicking reset button on the motion editor window. It is recommended to perform reset twice so that the robot beam will be done correctly.
  • Now you can start your motion design.
  • To add new keyframe to the list of keyframes, click add key frame button button.
  • To remove a keyframe, select it from keyframes list and then click delete key frame button
  • To edit/play a single keyframe, just select it from the keyframes list by clicking it. After being selected, the keyframe effect can be observed via RoboViz. Moreover, you can edit the joint values for the selected keyframe.
  • You can also play the keyframes successively from the beginning to the end by clicking play button
  • Buttons arrow up button and arrow down button are supposed to move a keyframe up or down in the keyframes list. But this feature is not implemented yet. So pressing these two button has no effect for now.
  • In case of a fall, you can instruct the robot to get up by clicking button.
  • Auto Fall Recovery checkbox specifies whether the robot should get up automatically in case of a fall or not. Please note that if the designed motion causes the accelerometer values on x or y axis to increase more than 6.5m/s^2, a fall will be detected by UTAustinVilla base code which means the designed motion execution will be aborted. So a word of advice is to keep Auto Fall Recovery off if you want to design unstable motions such as long range kicks.
  • Please note that the motion editor only works when the rcssserver3d play mode is PlayOn. So if the play mode is something different, it must be set to PlayOn manually via RoboViz.

Motion file format

  • The created motions will be saved in a text file. Each line of the file will represent the joint values (in degrees) for one keyframe and . The order of the saved values for one keyframe (one line of motion file) are as follows:
  • t // Keyframe execution time (milliseconds)
  • he1 // Head yaw
  • he2 // Head pitch
  • lae1 // Left shoulder pitch
  • lae2 // Left shoulder roll
  • lae3 // Left elbow yaw
  • lae4 // Left elbow roll
  • lle1 // Left hip yaw-pitch
  • lle2 // Left hip roll
  • lle3 // Left hip pitch
  • lle4 // Left knee pitch
  • lle5 // Left ankle pitch
  • lle6 // Left ankle roll
  • rle1 // Right hip yaw-pitch
  • rle2 // Right hip roll
  • rle3 // Right hip pitch
  • rle4 // Right knee pitch
  • rle5 // Right ankle pitch
  • rle6 // Right ankle roll
  • rae1 // Right shoulder pitch
  • rae2 // Right shoulder roll
  • rae3 // Right elbow yaw
  • rae4 // Right elbow roll
  • lle7 // Left toe pitch
  • rle7 // Right toe pitch

Sample kick motion

  • A sample kick motion for Nao type 0 is availabe in createdKicks folder. After setting body type, the sample kick can be loaded by Ctrl+o shortcut or using file menu.

User agreement

Contact

  • If you have any questions, suggestions or bug report, please feel free to contact us:aiut3d@yahoo.com.