Search found 1016 matches
- 19 May 2023, 11:24
- Forum: General questions
- Topic: Crash in while loop
- Replies: 12
- Views: 1156
Re: Crash in while loop
goal_matrix = sim.getObjectMatrix(goal,model) print('start:',goal_matrix) goal_matrix[6]=math.cos(recive_ang) goal_matrix[11]=math.cos(recive_ang) goal_matrix[7]=-math.sin(recive_ang) goal_matrix[10]=math.sin(recive_ang) print('after:',goal_matrix) sim.setObjectMatrix(goal,model,goal_matrix) that's...
- 18 May 2023, 13:51
- Forum: General questions
- Topic: macOS VRep connection error (Python Jupyter Notebook)
- Replies: 4
- Views: 1207
- 18 May 2023, 12:32
- Forum: General questions
- Topic: Error: signal 11: QMutex: destroying locked mutex CHAI3D
- Replies: 4
- Views: 796
Re: Error: signal 11: QMutex: destroying locked mutex CHAI3D
simLib doesnt exist on the CMake version. To have CMake find CoppeliaSim's development files, you have to set the COPPELIASIM_ROOT_DIR environment variable to point to the CoppeliaSim directory, e.g. export COPPELIASIM_ROOT_DIR="/path/to/CoppeliaSim_Edu_V4_5_0_Rev6_Linux" Also, if you dow...
- 09 May 2023, 13:42
- Forum: General questions
- Topic: What is the best approach to code pipeline processes?
- Replies: 3
- Views: 419
Re: What is the best approach to code pipeline processes?
The IK plugin can do as many iterations as you want, so it should be able to solve the IK task even in one call. The number of max iterations is controlled by the maxIterations parameter of simIK.setGroupCalculation. Also the parameter options.allowError of simIK.handleGroup has some influence, sinc...
- 09 May 2023, 13:37
- Forum: General questions
- Topic: How to handle IK resolution for two variations of the same Kinematic Chain?
- Replies: 2
- Views: 423
Re: How to handle IK resolution for two variations of the same Kinematic Chain?
Creating two groups should be the way to go.
Then you would call simIK.handleGroup *only* on either the first or the second group.
Then you would call simIK.handleGroup *only* on either the first or the second group.
- 08 May 2023, 11:22
- Forum: General questions
- Topic: How to simulate a piece of rope that moves with the movement of a certain point
- Replies: 2
- Views: 379
Re: How to simulate a piece of rope that moves with the movement of a certain point
There is an example scene at: scenes/mujoco/stringsRopesClothsAndSoftBodies.ttt but also the approach you mention, of creating a chain of bodies connected with joints would work with any physics engine too; it is not that difficult, you simply need to copy-paste one element (joint(s)+link) several t...
- 05 May 2023, 14:47
- Forum: General questions
- Topic: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
- Replies: 4
- Views: 608
Re: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
Field
Data is little endian on both Intel and ARM64 architectures.
is_bigendian
is different, and it would be incorrect in your message.Data is little endian on both Intel and ARM64 architectures.
- 03 May 2023, 17:50
- Forum: General questions
- Topic: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
- Replies: 4
- Views: 608
Re: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
Well, you are manually creating the sensor_msgs/Image message by yourself, so you can publish any image format. From CoppeliaSim you are only reading raw image data (supposedly in mono 16-bit format). How that data is interpreted (e.g. by image_view) depends on the value of the other fields of the s...
- 27 Apr 2023, 07:11
- Forum: General questions
- Topic: Calculate angle from gyrosensor data
- Replies: 2
- Views: 300
Re: Calculate angle from gyrosensor data
You can add this code at the end of sysCall_sensing function of the GyroSensor 's script: sim.setFloatSignal('gyroX',gyroData[1]) sim.setFloatSignal('gyroY',gyroData[2]) sim.setFloatSignal('gyroZ',gyroData[3]) then from another script, read a value with: z=sim.getFloatSignal('gyroZ') print('gyroZ',z...
- 26 Apr 2023, 16:55
- Forum: General questions
- Topic: JacoHand Efficient Grasping
- Replies: 6
- Views: 896
Re: JacoHand Efficient Grasping
With sim.getObject you can access any object, also outside model (use absolute path in that case, e.g.
See also Accessing scene objects programmatically.
/object
, /object/childObject
, etc... where "object" is a parent-less object).See also Accessing scene objects programmatically.