I don't know what you are trying to do: in your latest example 'shaft' and 
'base' have two links pointing in two different directions. Did you want to 
link to ground instead?
Moreover, the motor already provides the revolute joint embedded. So you 
are duplicating the joint.

And also, you enabled collision straight away: in this case it's not really 
needed and I would disable it for now.

I strongly recommend you to start from demos and then add on top of them.
BTW, by pressing the 'i' button of the keyboard during simulation you can 
get a panel in which you can enable some settings.

Here is the documentation about links and motors (depending on your 
PyChrono version there might be some differences):
https://api.projectchrono.org/development/links.html
https://api.projectchrono.org/development/motors.html

Here some useful demos:
https://github.com/projectchrono/chrono/blob/main/src/demos/python/mbs/demo_MBS_crank_plot.py
https://github.com/projectchrono/chrono/blob/main/src/demos/python/mbs/demo_MBS_motors.py

Il giorno giovedì 22 febbraio 2024 alle 01:30:39 UTC+1 T-Lind ha scritto:

> I've also set up this simpler example here 
> <https://github.com/T-Lind/chrono-sim/blob/master/just_motor.py>:
> [image: Screenshot 2024-02-21 182758.png]
> If you can help me figure this out, I'd be more than happy to write 
> documentation related to this example for Project Chrono.
> On Wednesday, February 21, 2024 at 5:45:41 PM UTC-6 T-Lind wrote:
>
>> "the "nothing seems to work" means that the rotating axis is not matching 
>> your expectations?" - Correct
>>
>> My assembly goes from looking like this:
>> [image: Screenshot 2024-02-21 173829.png]
>> to this distorted figure:
>> [image: Screenshot 2024-02-21 173917.png]
>> I'm not entirely sure how to display link frames or the CoG, even after 
>> looking around for it. And I did look at quite a few of the Pychrono demos 
>> (particularly the ones involving motors), but they all seem to use an 
>> outdated version and many do not work. In this 
>> <https://github.com/T-Lind/chrono-sim/blob/master/rigid_bodies.py> 
>> program I made, a ball is thrown at a cylinder, knocking it over.
>> [image: Screenshot 2024-02-21 174115.png]
>> Are there any up-to-date resources you'd recommend looking at (using 
>> PyChrono, preferably)? I want to avoid wasting your time here.
>>
>> Thank you for your help!
>>
>>
>> On Wednesday, February 21, 2024 at 2:26:24 PM UTC-6 [email protected] 
>> wrote:
>>
>>> Hi T-Lind,
>>> the "nothing seems to work" means that the rotating axis is not matching 
>>> your expectations?
>>> Can you show a picture? Maybe one with CoG drawing enabled, one with 
>>> Link frames enabled?
>>>
>>> Why don't you try with something simpler first? Without many rotations 
>>> in between?
>>> We also have plenty of demos that surely cover also this simple example.
>>>
>>> Dario
>>>
>>> Il giorno mercoledì 21 febbraio 2024 alle 03:58:21 UTC+1 T-Lind ha 
>>> scritto:
>>>
>>>> Hi there,
>>>>
>>>> Hopefully this isn't too much trouble, I'm just getting into Project 
>>>> Chrono.
>>>>
>>>> I'm using PyChrono and am testing out this program here 
>>>> <https://github.com/T-Lind/chrono-sim/blob/master/motor_assembly.py> (the 
>>>> STEP file is small so I committed it to GitHub). It's just a simple test, 
>>>> but I'm trying to get the shaft to rotate along the same cylindrical axis 
>>>> of the motor.
>>>>
>>>> I tried a bunch of different configurations, but nothing seems to work. 
>>>> Any help would be appreciated!
>>>>  
>>>>
>>>

-- 
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/00e69a34-123b-403a-b12d-2c518e32bfd1n%40googlegroups.com.

Reply via email to