Hi,
I want to flip an image in a publisher method so , following this post
https://forum.coppeliarobotics.com/viewtopic.php?p=36724&hilit=transformImage#p36724
I use this python code :
data, resolution = sim.getVisionSensorImg(self.visionSensor)
msg = Image()
msg.header.stamp = self.get ...
Search found 26 matches
- 17 Apr 2025, 12:32
- Forum: General questions
- Topic: Try to flip an image with transformImage
- Replies: 1
- Views: 4225
- 12 Mar 2025, 20:43
- Forum: General questions
- Topic: Object dynamically created never stop moving
- Replies: 3
- Views: 1062
Re: Object dynamically created never stop moving
Thank you for your reply.
Why is it a problem to have a non-convex object? How can it be avoided?
And why aren't mass and inertia appropriate for one physics engine (and I suppose for another)? I have little expertise in mechanics, but I think that physics is physics and that the behavior of a ...
Why is it a problem to have a non-convex object? How can it be avoided?
And why aren't mass and inertia appropriate for one physics engine (and I suppose for another)? I have little expertise in mechanics, but I think that physics is physics and that the behavior of a ...
- 10 Mar 2025, 18:29
- Forum: General questions
- Topic: Object dynamically created never stop moving
- Replies: 3
- Views: 1062
Object dynamically created never stop moving
Hi,
I use the following code to dynamically create a cylinder or a dumbbell.
When I run the simulation for the cylinder, the cylinder falls then quickly stop moving.
When I run the simulation for the dumbbell, it falls too but never stop moving. Its mass is the same than the cylinder one.
Why ...
I use the following code to dynamically create a cylinder or a dumbbell.
When I run the simulation for the cylinder, the cylinder falls then quickly stop moving.
When I run the simulation for the dumbbell, it falls too but never stop moving. Its mass is the same than the cylinder one.
Why ...
- 10 Mar 2025, 18:01
- Forum: General questions
- Topic: How to test a full contact between a suction pad and an object
- Replies: 1
- Views: 647
How to test a full contact between a suction pad and an object
Hi,
With the provided suction pad provided with Coppelia, it attach to an object if there's only a simple contact with them. But, it's not realist, I mean that ALL the surface of the suction pad must cover completely the object, not only a simple contact. If this is true, it means that no air can ...
With the provided suction pad provided with Coppelia, it attach to an object if there's only a simple contact with them. But, it's not realist, I mean that ALL the surface of the suction pad must cover completely the object, not only a simple contact. If this is true, it means that no air can ...
- 28 Nov 2024, 15:14
- Forum: General questions
- Topic: Custom ROS2 service to get Image
- Replies: 7
- Views: 7963
Re: Custom ROS2 service to get Image
Hi,
Today, I manage to solve my problem of writing a ROS2 service wich use a custom image message (to ask the service and receive an Image from a vision sensor).
I've written a tutorial about ROS2 services and Coppelia. Here's the link https://docs.google.com/document/d ...
Today, I manage to solve my problem of writing a ROS2 service wich use a custom image message (to ask the service and receive an Image from a vision sensor).
I've written a tutorial about ROS2 services and Coppelia. Here's the link https://docs.google.com/document/d ...
- 20 Nov 2024, 16:36
- Forum: Bug reports
- Topic: Pb (bug?) with custom ROS2 service
- Replies: 1
- Views: 8794
Pb (bug?) with custom ROS2 service
Hi,
My goal is to create a ROS2 service to get the image from a vision sensor. To do this, I follow these steps :
1/ Publish a ROS2 message Image from an PNG file
import rclpy
from rclpy.node import Node
import cv2
from cv_bridge import CvBridge
from sensor_msgs.msg import Image
class ...
My goal is to create a ROS2 service to get the image from a vision sensor. To do this, I follow these steps :
1/ Publish a ROS2 message Image from an PNG file
import rclpy
from rclpy.node import Node
import cv2
from cv_bridge import CvBridge
from sensor_msgs.msg import Image
class ...
- 18 Nov 2024, 10:20
- Forum: General questions
- Topic: Custom ROS2 service to get Image
- Replies: 7
- Views: 7963
Re: Custom ROS2 service to get Image
OK, perfect.
The only problem is that my scripts don't work at the moment.
Most of the information (data, with, height, ...) are empty or equal to 0 so it means that my scripts (python and LUA) have errors. But I can't see what is wrong.
The LUA script is an 'improvisation', I don't know this ...
The only problem is that my scripts don't work at the moment.
Most of the information (data, with, height, ...) are empty or equal to 0 so it means that my scripts (python and LUA) have errors. But I can't see what is wrong.
The LUA script is an 'improvisation', I don't know this ...
- 18 Nov 2024, 08:55
- Forum: General questions
- Topic: Custom ROS2 service to get Image
- Replies: 7
- Views: 7963
Re: Custom ROS2 service to get Image
Hi,
Using ROS2 service with Coppelia is a bit complicated (edition of interfaces.txt, compilation of libsimROS2.so, ...).
Once the get image service is up and running, I propose to write a tutorial about how to write a ROS2 service for COppelia.
Is there any recommendations for this (format : HTML ...
Using ROS2 service with Coppelia is a bit complicated (edition of interfaces.txt, compilation of libsimROS2.so, ...).
Once the get image service is up and running, I propose to write a tutorial about how to write a ROS2 service for COppelia.
Is there any recommendations for this (format : HTML ...
- 13 Nov 2024, 21:49
- Forum: General questions
- Topic: Custom ROS2 service to get Image
- Replies: 7
- Views: 7963
Re: Custom ROS2 service to get Image
Hi,
I don't know the LUA language but I try to translate the python script in LUA.
Here's the LUA script :
simROS2 = require('simROS2')
sim=require'sim'
function sysCall_init()
visionSensor=sim.getObject('/visionSensor')
print(visionSensor)
corout=coroutine.create(coroutineMain)
end ...
I don't know the LUA language but I try to translate the python script in LUA.
Here's the LUA script :
simROS2 = require('simROS2')
sim=require'sim'
function sysCall_init()
visionSensor=sim.getObject('/visionSensor')
print(visionSensor)
corout=coroutine.create(coroutineMain)
end ...
- 12 Nov 2024, 15:59
- Forum: General questions
- Topic: Custom ROS2 service to get Image
- Replies: 7
- Views: 7963
Custom ROS2 service to get Image
Hi,
With the help of responses from this topic (see https://forum.coppeliarobotics.com/viewtopic.php?t=10791 ), I can now create a AddFourInts.srv service message and use it in a Coppelia python threaded script.
def sysCall_init():
sim = require('sim')
simROS2 = require('simROS2')
global srv ...
With the help of responses from this topic (see https://forum.coppeliarobotics.com/viewtopic.php?t=10791 ), I can now create a AddFourInts.srv service message and use it in a Coppelia python threaded script.
def sysCall_init():
sim = require('sim')
simROS2 = require('simROS2')
global srv ...