Home | Tutorials | Wiki | Issues
Ask Your Question
1

how to set the rotate axis?

asked 2012-12-03 19:24:26 -0600

lugd1229 gravatar image

I import two links from solidworks, they are stl files, and I add coodinate system on a hole of the two links,now I want to make the second lind rotate around the setted X axis, but it can not ,how can I deal with it? the code as follow: link: <pose>0 1.0 0.0 0 0 0</pose> <geometry> <box> <url>.......link1.stl</url> </box> </geometry>

<joint name="my_joint" type="revolute"> <parent>world</parent> <child>link</child> <axis> <xyz>1 0 0</xyz> </axis> </joint>

edit retag flag offensive close merge delete

Comments

Can you clarify? I cant quite tell what you're asking.

asomerville gravatar imageasomerville ( 2012-12-03 20:59:33 -0600 )edit

I will use plugin animate a link rotate around a setting axis of a coordinate system attached on another link.

lugd1229 gravatar imagelugd1229 ( 2012-12-03 21:20:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-12-04 17:05:19 -0600

asomerville gravatar image

I'm not sure I understand your question exactly, but I'll go by what I think you're asking.

The coordinate system transformations are based on the joints only. That is to say that the link transformations have no effect on where the next joint is placed, so your stl files and where you set their origins to are irrelevant.

Therefore you must place the next joint with respect to the previous one. In the code you pasted you do not set an origin, so it will likely default to 0, 0, 0 which would put it exactly on top of the last one.

edit flag offensive delete link more

Comments

thank you!

lugd1229 gravatar imagelugd1229 ( 2012-12-04 17:55:47 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-12-03 19:24:26 -0600

Seen: 266 times

Last updated: Dec 04 '12