Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Generate Path #92

Closed
CrispyBacon1999 opened this issue Jul 28, 2023 · 3 comments
Closed

Can't Generate Path #92

CrispyBacon1999 opened this issue Jul 28, 2023 · 3 comments

Comments

@CrispyBacon1999
Copy link

After making a fairly long path, the generate button becomes disabled with the text "Generate path (needs 2 waypoints)". This is on the current alpha release version.

Path:

{
    "version": "v0.0.0",
    "robotConfiguration": {
        "mass": 63.5029,
        "rotationalInertia": 5.6,
        "wheelMaxTorque": 1.9,
        "wheelMaxVelocity": 16,
        "wheelbase": 0.57785,
        "trackWidth": 0.57785,
        "bumperLength": 0.9,
        "bumperWidth": 0.9,
        "wheelRadius": 0.0508
    },
    "paths": {
        "Broken Path": {
            "waypoints": [
                {
                    "x": 1.847985029220581,
                    "y": 2.9409890174865723,
                    "heading": 3.1286062808745037,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 2.8469085693359375,
                    "y": 3.332319974899292,
                    "heading": 3.141592653589793,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 5.946660995483398,
                    "y": 3.414705514907837,
                    "heading": 0,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 6.8940935134887695,
                    "y": 3.404407262802124,
                    "heading": 0,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 6.430675506591797,
                    "y": 3.404407262802124,
                    "heading": 0,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 5.26698112487793,
                    "y": 3.414705514907837,
                    "heading": 3.1254650337956287,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 2.970486640930176,
                    "y": 3.404407262802124,
                    "heading": 3.134599712470048,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 1.9612650871276855,
                    "y": 3.6000726222991943,
                    "heading": 3.141592653589793,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 2.8366103172302246,
                    "y": 3.3735127449035645,
                    "heading": 0.00961515464871096,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 5.339068412780762,
                    "y": 3.394109010696411,
                    "heading": 0,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 6.337991714477539,
                    "y": 3.929614543914795,
                    "heading": 0.7562093421285745,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 6.852900505065918,
                    "y": 4.413629055023193,
                    "heading": 0.7509291723814462,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 6.440973281860352,
                    "y": 4.053192615509033,
                    "heading": 0.7356656243694437,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 5.318471908569336,
                    "y": 3.414705514907837,
                    "heading": 3.126778992329981,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 2.795417547225952,
                    "y": 3.3735127449035645,
                    "heading": 2.9729955306423057,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                },
                {
                    "x": 2.0333521366119385,
                    "y": 3.476494550704956,
                    "heading": 3.0118902024990373,
                    "velocityMagnitude": 0,
                    "velocityAngle": 0,
                    "xConstrained": true,
                    "yConstrained": true,
                    "headingConstrained": true,
                    "velocityMagnitudeConstrained": false,
                    "velocityAngleConstrained": false,
                    "angularVelocity": 0,
                    "angularVelocityConstrained": false,
                    "controlIntervalCount": 0
                }
            ],
            "trajectory": null
        }
    }
}
@CrispyBacon1999
Copy link
Author

Did some digging into the code and it looks like it just renders that way, even while it's generating. Eventually, the button did go back to the enabled state, but it still doesn't generate a path for it.

@jlbabilino
Copy link
Member

Correct. The new release has a hamster wheel progress indicator to show this.

@shueja
Copy link
Collaborator

shueja commented Jul 29, 2023

As far as the generation failing, we know the solver struggles with longer paths. We have some room for improvement with it.

@shueja shueja closed this as completed Aug 3, 2023
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

No branches or pull requests

3 participants