Skip to content

Conversation

@stephenjust
Copy link
Contributor

  • Integrate MapleSim
  • Handle breaking changes from SCL
  • Update deps

* Integrate MapleSim
* Handle breaking changes from SCL
* Update deps
Copy link
Contributor

@aschokking aschokking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! Would eventually be nice to backport it into the EDU project as well so the robots there start hitting walls =D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an intelliJ thing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

import edu.wpi.first.math.geometry.Pose2d;
import xbot.common.subsystems.pose.SimulatedPositionSupplier;

public interface BaseSimulator extends SimulatedPositionSupplier {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at it now, should we have called this ISimulator?

import org.ironmaple.simulation.drivesims.configs.DriveTrainSimulationConfig;

@Singleton
public class MapleSimulator implements BaseSimulator {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ if we're going to keep putting more stuff in here, should we just call this Simulator? Or BaseSwerveSimulator?

private SwerveModulePosition[] getSwerveModulePositions() {
// if we have simulated data, return that directly instead of asking the
// modules
if (simulatedModulePositions.isPresent()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any better ideas for how to handle this interface? Felt icky hacking it into the code like this but was expedient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants