Search found 11 matches

by levasmol
05 May 2023, 14:23
Forum: General questions
Topic: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
Replies: 4
Views: 609

Re: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin

Hi,

Here is the result between coppelia Image:https://ctxt.io/2/AACQp2tRFQ
and python test Image (being:

Code: Select all

img = 1515 * np.ones((512, 512), dtype=np.uint16)
) being published: https://ctxt.io/2/AACQMyZbEA

I do not see any difference btw coppelia and python node
by levasmol
03 May 2023, 17:23
Forum: General questions
Topic: publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin
Replies: 4
Views: 609

publishing depth buffer to sensor_msgs/Image ros topic with sim_ros_interface plugin

Hello, Im trying to publish a depth buffer as sensor_msgs/Image on /depthCoppelia ros topic. Im using CoppeliaSim V4.3.0., (rev. 3), flavor: 1 with its ros plugin. The lua script looks like that for init script: function sysCall_init() if simROS then sim.addLog(sim.verbosity_scriptinfos,"ROS in...
by levasmol
22 May 2022, 16:08
Forum: General questions
Topic: Vortex simulation of the cable
Replies: 3
Views: 1506

Re: Vortex simulation of the cable

Hello, thanks for the example. But your example behaves much less realistic then mine. In spherical joint i cant use mass dumper spring control which is mandatory in order to simulate a realistic cable (which has a mass, extensible and bendable with some effort). May be you have some more examples o...
by levasmol
13 May 2022, 14:49
Forum: General questions
Topic: Vortex simulation of the cable
Replies: 3
Views: 1506

Vortex simulation of the cable

Hello! Im using Vortex with CoppeliaSim to simulate my scene: https://filesender.renater.fr/?s=download&token=5735382e-d8ab-4293-8f27-53ffc4cf8fbe With Newton cable behaves good. And the same setup with Vortex looks like on this screenshot: https://www.linkpicture.com/q/Screenshot-from-2022-05-1...
by levasmol
11 Apr 2022, 13:02
Forum: General questions
Topic: problem with vision sensor depth buffer publishing with simROS.imageTransportPublish
Replies: 4
Views: 649

Re: problem with vision sensor depth buffer publishing with simROS.imageTransportPublish

No, just published the image directly via ImageTransport after that: simVision.sensorImgToWorkImg(inData.handle) simVision.verticalFlipWorkImg(inData.handle) simVision.horizontalFlipWorkImg(inData.handle) simVision.selectiveColorOnWorkImg(inData.handle,{1,1,0}, {0.1,0.1,0.1}, true, true, false) simV...
by levasmol
11 Apr 2022, 12:26
Forum: General questions
Topic: is work image aligned with point cloud from simVision.coordinatesFromWorkImg
Replies: 1
Views: 464

is work image aligned with point cloud from simVision.coordinatesFromWorkImg

Hello! I want to recuperate a part of the point cloud corresponding to the colored object on the work image. I segment this object using color threshold and and send it via ImageTransport ros topic: function sysCall_vision(inData) simVision.sensorImgToWorkImg(inData.handle) simVision.verticalFlipWor...
by levasmol
08 Apr 2022, 19:22
Forum: General questions
Topic: problem with vision sensor depth buffer publishing with simROS.imageTransportPublish
Replies: 4
Views: 649

Re: problem with vision sensor depth buffer publishing with simROS.imageTransportPublish

Thank you for the answer. I also succeded to ImageTransport the greyscale image. Works well!
by levasmol
04 Apr 2022, 14:16
Forum: General questions
Topic: problem with vision sensor depth buffer publishing with simROS.imageTransportPublish
Replies: 4
Views: 649

problem with vision sensor depth buffer publishing with simROS.imageTransportPublish

Hello! I'm using ROS interface to publish the DepthBuffer acquired by the vision sensor with local depthBuffer = sim.getVisionSensorDepthBuffer(activeVisionSensor + sim.handleflag_depthbuffermeters + sim.handleflag_codedstring) stamp=simROS.getTime() simROS.imageTransportPublish(pub1,depthBuffer,w,h...