X,y,z new coordinate calculation for joint rotations in CoppeliaSimEdu

AI Thread Summary
A user is working on a 3D manipulator joint in CoppeliaSimEdu and is facing issues with the calculation of x and y coordinates, while the z coordinate appears correct. They provided a transformation matrix for the joint rotations but suspect an error in their calculations, particularly regarding the sine function in the matrix. Another participant suggests that the matrix is mostly correct but points out a potential mistake in the sine term and advises checking the dummy object's expected position. The discussion concludes with a formula for calculating x and y coordinates based on the lengths of the manipulator's segments and the angles of rotation. The user is encouraged to explore examples within CoppeliaSimEdu to better understand the program's functionality.
dis
Messages
3
Reaction score
0
TL;DR Summary
I have problems with kinematic- > Rot(z,a1)Rot(z,a2)Trans(0,0,d) a1 and a2 angles d projection. My function was x = (d3+const)*math.cos(a1)*math.sin(a2) y = (d3*const)*math.const(a1)*math.sin(a2) but it not working.
I have created a 3D manipulator joint in CoppeliaSimEdu, I have the following joint rotation along the z axis, a second rotation joint raised in height and shifted along the x axis and further along the x axis is a directions joint. Or Rot(z,a1)Rot(z,a2)Trans(0,0,d) a1 and a2 angles d projection. But I have added a Dummy object to CoppeliaSim with which I set the x,y,z coordinates according to the kinematics calculations. But as far as I understand, I have a problem with the calculation of x and y coordinates, because the z coordinate is as it should be.

By connecting all the joints I got the matrix: [[cos(a1+a2), -sin(a1+a2),0,0],[sin(a2-a1),cos(a1+a2),0,0],[0,0,1,d ],[0,0,0,1]]

thus thinking that x = cos(a1+a2) + sin(a2-a1) y = -sin(a1+a2)+cos(a1+a2) z = d but the Dummy object doesn't move as it should, so I believe my x,y coordinates are wrong. How could I fix it?
 
Engineering news on Phys.org
:welcome:

I am not familiar with CoppeliaSimEdu, but for some interpretations of your initial description your 4x4 matrix seems correct except for ##\sin(a2-a1)## which should be ##\sin(a1+a2)##. Note that two sequential rotations around any axis is equivalent to a single rotation about the exact same axis with the sum of the two angles.

I am not sure what you are saying next. Is (1, 1, 1) the position of your dummy object? And you expect it to shift around when you change your two angles and the offset? If so, it sounds like its more an issue with use of the program you use, so perhaps you can find an example that works and then try transform it to be applicable to your problem?
 
Thanks. Found answer.
x = l1*math.cos(teta1)+l2*math.cos(teta1 + teta2)
y = l1*math.sin(teta1)+l2*math.sin(teta1+ teta2)

where l1 and l2 are constant
 
Posted June 2024 - 15 years after starting this class. I have learned a whole lot. To get to the short course on making your stock car, late model, hobby stock E-mod handle, look at the index below. Read all posts on Roll Center, Jacking effect and Why does car drive straight to the wall when I gas it? Also read You really have two race cars. This will cover 90% of problems you have. Simply put, the car pushes going in and is loose coming out. You do not have enuff downforce on the right...
Carburetor CFM A Holley Carb rated at 500 cfm 2 barrel carb has venturi diameter of 1.3/8". There are 2 barrel carbs with 600 cfm and have 1.45 diameter venturi. Looking at the area the 1.378 bore has 5.9 sq. Inch area. The 1.45 dia. has 6.6 sq. inch. 5.9 - 6.6 = 0.70 sq. inch difference. Keeping the 500 cfm carb in place, if I can introduce 0.7 sq inch more area in the intake manifold, will I have the same potential horsepower as a 600 cfm carb provide? Assume I can change jetting to...
I'm trying to decide what size and type of galvanized steel I need for 2 cantilever extensions. The cantilever is 5 ft. The space between the two cantilever arms is a 17 ft Gap the center 7 ft of the 17 ft Gap we'll need to Bear approximately 17,000 lb spread evenly from the front of the cantilever to the back of the cantilever over 5 ft. I will put support beams across these cantilever arms to support the load evenly
Back
Top