Skip to content

SequentialCommandGroup causes segfault sometimes #48

@SomewhatMay

Description

@SomewhatMay

I have not looked too into the details since the issue arose the day before competition. Here is the code in question that caused the robot code to segfault:

void autonomous() {
  uvl::Scheduler::get_instance().schedule_command(
      AutoFollow(drivetrain, example_txt, 2, 10000)
          .and_then(
              AutoFollow(drivetrain, example_txt, 2, 10000, false).to_ptr()));

  uvl::Scheduler::get_instance().mainloop();
}

This is a snapshot from an earlier commit in the BloorVex-11997/midas-touch-2025v2/midas-touch-2025v2 repo found here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions