Skip to content

Commit

Permalink
🚚 (BehaviorKit): Update video paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Jun 15, 2022
1 parent 2c93d99 commit a82b7f7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions libs/BehaviorKit/source/BehaviorKit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ void BehaviorKit::launching()
void BehaviorKit::sleeping()
{
_ledkit.start(&LedKit::animation::sleeping);
_videokit.playVideoOnce("/fs/videos/2022_01_17-animation-face-state-yawning-sleeping_without_eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-sleep-yawn_then_sleep-no_eyebrows.avi");
}

void BehaviorKit::waiting()
{
_ledkit.stop();
_videokit.playVideoOnRepeat(
"/fs/videos/2022_02_14-animation-face-state-waiting-looking-top-right-to-left-without-eyebrows.avi");
_videokit.playVideoOnRepeat("/fs/home/vid/system/robot-system-idle-looking_top_right_left-no_eyebrows.avi");
}

void BehaviorKit::lowBattery()
Expand Down Expand Up @@ -79,7 +78,7 @@ void BehaviorKit::blinkGreen()
{
spinLeft(1);
_ledkit.start(&LedKit::animation::blink_green);
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-state-happy-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-reinforcer-happy-no_eyebrows.avi");
rtos::ThisThread::sleep_for(reinforcer_duration);
_ledkit.stop();
_motor_left.stop();
Expand All @@ -90,7 +89,7 @@ void BehaviorKit::spinBlink()
{
spinRight(1);
_ledkit.start(&LedKit::animation::spin_blink);
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-state-happy-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-reinforcer-happy-no_eyebrows.avi");
rtos::ThisThread::sleep_for(reinforcer_duration);
_ledkit.stop();
_motor_left.stop();
Expand All @@ -100,23 +99,23 @@ void BehaviorKit::spinBlink()
void BehaviorKit::fire()
{
_ledkit.start(&LedKit::animation::fire);
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-state-happy-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-reinforcer-happy-no_eyebrows.avi");
rtos::ThisThread::sleep_for(reinforcer_duration);
_ledkit.stop();
}

void BehaviorKit::sprinkles()
{
_ledkit.start(&LedKit::animation::sprinkles);
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-state-happy-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-reinforcer-happy-no_eyebrows.avi");
rtos::ThisThread::sleep_for(reinforcer_duration);
_ledkit.stop();
}

void BehaviorKit::rainbow()
{
_ledkit.start(&LedKit::animation::rainbow);
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-state-happy-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-reinforcer-happy-no_eyebrows.avi");
rtos::ThisThread::sleep_for(reinforcer_duration);
_ledkit.stop();
}
Expand All @@ -125,7 +124,7 @@ void BehaviorKit::bleConnection(bool with_video)
{
_ledkit.start(&LedKit::animation::ble_connection);
if (with_video) {
_videokit.playVideoOnce("/fs/videos/2022_02_14-animation-face-action-wink-without-eyebrows.avi");
_videokit.playVideoOnce("/fs/home/vid/system/robot-system-ble_connection-wink-no_eyebrows.avi");
}
}

Expand Down

0 comments on commit a82b7f7

Please sign in to comment.