Search found 1084 matches
- 13 Sep 2024, 08:36
- Forum: General questions
- Topic: sim.callScriptFunction via zeroMQ
- Replies: 2
- Views: 151
Re: sim.callScriptFunction via zeroMQ
json args( json_array_arg ); args.push_back("1"); first arg passed to function args.push_back("2"); second arg passed to function args.push_back("3"); int nScriptHandle = sim.getScript( sim.scripttype_customization, "Script_GUI" ); argsRet = sim.callScriptFun...
- 05 Sep 2024, 15:26
- Forum: General questions
- Topic: Generic conveyor (belt) speed control
- Replies: 4
- Views: 185
Re: Generic conveyor (belt) speed control
Yes you can change the velocity afterwards.
To command the conveyor externally or from another script, simply do:
To command the conveyor externally or from another script, simply do:
Code: Select all
sim.writeCustomTableData(conveyorHandle, '__ctrl__', {vel=0.1})
- 04 Sep 2024, 14:13
- Forum: General questions
- Topic: Can I use remoteApi.so on Ubuntu 22.04?
- Replies: 1
- Views: 143
Re: Can I use remoteApi.so on Ubuntu 22.04?
Remote API is documented here:
https://manual.coppeliarobotics.com/en/ ... erview.htm
Legacy remote API is deprecated. ZMQ Remote API should be used instead.
https://manual.coppeliarobotics.com/en/ ... erview.htm
Legacy remote API is deprecated. ZMQ Remote API should be used instead.
- 03 Sep 2024, 15:25
- Forum: General questions
- Topic: Pick and Place Robotic Arm
- Replies: 2
- Views: 230
Re: Pick and Place Robotic Arm
Hi, the manual is your friend. It is true there aren't many tutorials around to do specific things. This is mainly because once you got the basic concepts, it is very easy to create more complex behavior by composing simpler things. Make sure to have a look at the included example scenes and also st...
- 29 Aug 2024, 09:47
- Forum: General questions
- Topic: [Ubuntu V-REP Old Versions] How do I install V-REP 3.5.0 for Ubuntu?
- Replies: 1
- Views: 346
Re: [Ubuntu V-REP Old Versions] How do I install V-REP 3.5.0 for Ubuntu?
Older versions are found here:
https://coppeliarobotics.com/previousVersions
V3.5.0 is probably too old.
Newer versions should maintain backwards compatibility to some extent, you might try one of those.
https://coppeliarobotics.com/previousVersions
V3.5.0 is probably too old.
Newer versions should maintain backwards compatibility to some extent, you might try one of those.
- 23 Aug 2024, 11:14
- Forum: General questions
- Topic: Calculate the weight of object held by gripper
- Replies: 3
- Views: 561
Re: Calculate the weight of object held by gripper
You will be measuring everything attached to the force sensor, including the gripper itself. The force sensor will be measuring force \vec{F} and torque \vec{\tau} acting on it. Consider a mass M attached at point \vec{r} with respect to force sensor's origin, you'll have: \vec{F} = M \cdot \vec{g} ...
- 14 Aug 2024, 17:13
- Forum: General questions
- Topic: "Inconsistent Execution Error in CoppeliaSim Reinforcement Learning Environment Due to getJointForce Function
- Replies: 2
- Views: 459
- 14 Aug 2024, 17:10
- Forum: General questions
- Topic: Pick and place robot and gripper
- Replies: 1
- Views: 387
Re: Pick and place robot and gripper
If you want to block one script execution while another executes, you have to use a combination of threaded scripts and a synchronization mechanism such as signals (e.g. wait in the threaded script with sim.waitForSignal, and set the signal in the other script with sim.setInt32Signal)
- 14 Aug 2024, 17:01
- Forum: General questions
- Topic: Best way to broadcast the entire scene as a TF2 tree
- Replies: 1
- Views: 812
Re: Best way to broadcast the entire scene as a TF2 tree
Function simROS2.sendTransform (to send just one geometry_msgs/msg/TransformStamped) or simROS2.sendTransforms (to send multiple at once as an array of geometry_msgs/msg/TransformStamped messages) is the way to go; it uses the
tf2_ros::TransformBroadcaster
class of ROS2.- 14 Aug 2024, 16:58
- Forum: General questions
- Topic: Getting LiDAR data and saving to .csv
- Replies: 2
- Views: 946
Re: Getting LiDAR data and saving to .csv
In the sensor script you already have the angle variable, and p[1],p[2],p[3] which are the coordinates of the point (you can compute vector length to figure out the distance, so you have polar coordinates. Thos coordinates are correct, as confirmed by the lines that you can see by setting showLines=...