TODO: finish the eligibility trace and ROS interface