View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000063 | FreeCAD | Bug | public | 2010-01-08 16:44 | 2010-04-10 09:58 |
Reporter | wmayer | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.9 | ||||
Summary | 0000063: Crash in Robot module | ||||
Description | When creating a robot object and a trajectory without filling up, select both and run the simulation the app crashes. | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
I use it at the moment all the time... I need more information. You have the latest trunk? |
|
1. New document 2. Insert Robots > Kuka IR500 3. Create trajectory 4. Select both and run Simulate a trajectory => Crash in Trajectory_Composite::Pos() because "traj = vt[vt.size()-1];" is wrong if vt is empty. The methods * Trajectory::getLength * Trajectory::getDuration * Trajectory::getVelocity have probably the same problem. |
|
Ahh, I never tried to simulate a empty trajectory ;) I fix it! Thanks |
|
So far there exists no method to query the size of "vt" but checking the path length with pcTrajectory->GetPath()->PathLength() does pretty much the same. So, if the length is 0 an empty placement can be returned. The implementation can look like this: Placement Trajectory::getPosition(double time)const { if (pcTrajectory && pcTrajectory->GetPath()->PathLength() > 0.0) return Placement(toPlacement(pcTrajectory->Pos(time))); else return Placement(); } The same applies to the other questionable methods I have listed. |
|
fixed with 2851 |
|
This bug is still not properly fixed. When inserting exact one position the crash sill occurs. |
|
fixed with 3079 |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-01-08 16:44 | wmayer | New Issue | |
2010-01-08 16:44 | wmayer | Status | new => assigned |
2010-01-08 16:44 | wmayer | Assigned To | => Jriegel |
2010-01-08 16:46 |
|
Note Added: 0000129 | |
2010-01-08 16:46 |
|
Status | assigned => feedback |
2010-01-08 20:29 | wmayer | Note Added: 0000130 | |
2010-01-09 08:25 |
|
Note Added: 0000131 | |
2010-01-09 09:25 | wmayer | Note Added: 0000132 | |
2010-01-12 18:35 |
|
Note Added: 0000144 | |
2010-01-12 18:35 |
|
Status | feedback => closed |
2010-01-12 18:35 |
|
Resolution | open => fixed |
2010-01-17 12:29 | wmayer | Note Added: 0000150 | |
2010-01-17 12:29 | wmayer | Status | closed => assigned |
2010-01-17 12:29 | wmayer | Resolution | fixed => reopened |
2010-04-08 09:44 |
|
Note Added: 0000200 | |
2010-04-08 09:44 |
|
Status | assigned => resolved |
2010-04-08 09:44 |
|
Resolution | reopened => fixed |
2010-04-10 09:58 | wmayer | Status | resolved => closed |