Hi Radu, thank you for your suggestions, now everything is working fine! Regarding the first issue, the problem was in the object index, while I will pull the latest release to solve the second one. Thank you again.
Gianni Il giorno martedì 6 agosto 2024 alle 14:06:59 UTC+2 Radu Serban ha scritto: > Gianni, > > > > I’m answering both questions in the same place. > > > > 1. I am not sure what is happening in your code, and you do not > provide enough information to be able to tell that (for example, I don’t > know what the signature of your CreateLander() function is). In any case, > this looks like a memory issue. Something that can easily be figured out > with a debugger: step through the code and inspect the list of bodies in > the system, making sure the 1st one is indeed your “lander” body. > Note also that you are setting both “lander” and “sam_acq” to the same > body > in the system (namely the 1st body that was added to the system). > Again, I don’t know what you intend to do from the limited information you > provided. > 2. This was in fact a bug in the Chrono utility functions > WriteCheckpoint and ReadCheckpoint (which were not properly updated when > we > changed the definition of dimensions for various primitive collision > shapes). I pushed a fix. You can check that the container collision > geometry is reconstructed properly from the checkpointing file in > demo_MCORE_cratering. > > > > --Radu > > > > *From:* [email protected] <[email protected]> *On > Behalf Of *Gianni Curti > *Sent:* Tuesday, August 6, 2024 1:20 AM > *To:* ProjectChrono <[email protected]> > *Subject:* Re: [chrono] Retrieving the rotation of a box container in > Multicore > > > > 2. The two images below help to clarify what I mean by "disassembled": > > Before: > > After: > > The procedure I am following is the one reported in the demo > "demo_MCORE_cratering". > > In particular, here I save all the objects I created: > > The, with these commands I read the csv file: > > The only solution I found up to now is to manually cancel the corrupted > objects from the csv file and create them again in the new simulation, but > this is unpractical when dealing with more complex cases. > > > > Please, let me know if you need any other information. Thank you again. > > > > Gianni > > > > Il giorno martedì 6 agosto 2024 alle 01:19:14 UTC+2 Gianni Curti ha > scritto: > > Hi Radu, > > thank you so much for your kindness and patience. > > I am answering to the two points in different messages as when I try to > combine them in a single one the post gets cancelled. > > > > 1. Below, you can find the code in which I create the ChBody "lander", and > then I apply the box shape through the function > chrono::utils::AddBoxContainer > <https://urldefense.com/v3/__https:/github.com/projectchrono/chrono/blob/e3eb07ec07abcd4adcfc24054335547e462eae98/src/chrono/utils/ChUtilsCreators.h*L250__;Iw!!Mak6IKo!Pdr1YQrioVSnU9jRBWEa0jk71-uG_UVWLX80h8lRTXt2Pa_MWc7udA16vtA0WnqR068DR5YKcQAyn8AF2KxC$> > as > you said. As you can see, my reference system has the axes oriented as the > global one, while I applied a translation to the center. > > > This code is contained within a function called "CreateLander" which is > used in the main. Then, I try to retrieve the body as follows: > > Finally, I use "GetRot" to obtain the queternion but the result is > [-nan(ind) -nan(ind) -nan(ind) -nan(ind)]. > > On the other hand, the object "link_actuator" works perfectly as expected. > > > > -- > > You received this message because you are subscribed to the Google Groups > "ProjectChrono" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/projectchrono/6a21c3de-3760-48d5-9658-feb2078ced43n%40googlegroups.com > > <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/6a21c3de-3760-48d5-9658-feb2078ced43n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!Pdr1YQrioVSnU9jRBWEa0jk71-uG_UVWLX80h8lRTXt2Pa_MWc7udA16vtA0WnqR068DR5YKcQAynzG3nUuN$> > . > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/7a5b2760-70a0-4aa2-be62-157e88b5af5en%40googlegroups.com.
