We want to change the attitude of the point cloud, to move and rotate the point cloud.

Typically: "How do I... ", "How can I... " questions
Post Reply
aaaaabc?
Posts: 9
Joined: 10 Apr 2022, 15:43

We want to change the attitude of the point cloud, to move and rotate the point cloud.

Post by aaaaabc? »

We can move and rotate the point cloud through the move and rotate buttons in the coppeliasim interface. We would like to know whether this operation can be implemented programmatically. I wonder if you can provide interfaces for moving buttons and rotating buttons in the interface?

fferri
Posts: 1231
Joined: 09 Sep 2013, 19:28

Re: We want to change the attitude of the point cloud, to move and rotate the point cloud.

Post by fferri »

Yes, you can use any of these API functions to move/rotate objects:
  • sim.getObjectMatrix
  • sim.setObjectMatrix
  • sim.getObjectPose
  • sim.setObjectPose
  • sim.getObjectPosition
  • sim.setObjectPosition
  • sim.getObjectOrientation
  • sim.setObjectOrientation
  • sim.getObjectQuaternion
  • sim.setObjectQuaternion
See also positions, orientations & transformations.

aaaaabc?
Posts: 9
Joined: 10 Apr 2022, 15:43

Re: We want to change the attitude of the point cloud, to move and rotate the point cloud.

Post by aaaaabc? »

How do I get the output torque of the joint in torque mode?

coppelia
Site Admin
Posts: 10376
Joined: 14 Dec 2012, 00:25

Re: We want to change the attitude of the point cloud, to move and rotate the point cloud.

Post by coppelia »

did you have a look at sim.getJointForce ?

Cheers

aaaaabc?
Posts: 9
Joined: 10 Apr 2022, 15:43

Re: We want to change the attitude of the point cloud, to move and rotate the point cloud.

Post by aaaaabc? »

Yes,I do. But, what I understand is that this is the total force experienced by the joint axis, not the force output by the joint.

Post Reply