Change thrusterData to a pointer#967
Conversation
6b7dfe1 to
3984f1a
Compare
|
Have you thought about using Take a look at how to the SWIG interface file before you |
|
Howdy @juan-g-bonilla, thanks for the suggestion. I think I'd like to try this, but in a separate branch. We did the RW configuration messages as raw pointers as well. If we change this, I'd like to change both RW and thrusters at once. I like the benefits you list for having better memory management if something is connected to these configuration message objects. |
|
Mm, looking at the unit tests, we are getting a lot of segfault errors. I'm assuming we have several scenarios where the thruster info is copied to the BSK effector and then not retained. With the raw pointers this leads to seg faults. @Yume27 , could you please try out @juan-g-bonilla's suggestion above for this branch? Right now the tests are not passing. Please be sure to test all BSK tests on your computer as well before pushing a PR. |
schaubh
left a comment
There was a problem hiding this comment.
The BSK tests are not all passing. See Juan's suggestion on using smart pointers.
Also, be sure to document these changes by updating the Release Notes, and update the thruster RST documentation.
Do you recommend trying what @juan-g-bonilla suggested rather than adapting each example script that was affected by the change? |
|
Let's try @juan-g-bonilla's suggestion to see if this helps here. |
815d618 to
0dfd611
Compare
0dfd611 to
d586a07
Compare
d586a07 to
90e9dbd
Compare
Description
Changed the thruster config message in thrusterDynamicEffector to a pointer, duplication of thruster config messages is avoided, and parameters can be easily modified during simulation.
Verification
Unit test was done with
test_ThrusterDynamicsUnit.pyDocumentation
N/A
Future work
N/A