ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Ibrahim Essam's profile - activity

2020-05-20 08:02:28 -0500 received badge  Famous Question (source)
2020-02-21 13:38:19 -0500 received badge  Enthusiast
2020-02-09 15:36:09 -0500 commented answer problem publishing OpenCV Image from FastRTPS to ROS2

@gvdhoom updated.

2020-02-09 15:34:31 -0500 received badge  Editor (source)
2020-02-09 15:34:31 -0500 edited answer problem publishing OpenCV Image from FastRTPS to ROS2

here is an example for anyone wondering how to do it. https://github.com/HemaZ/FastRTPS-ROS2 First we need to get all t

2020-02-09 15:27:37 -0500 received badge  Notable Question (source)
2020-01-27 06:57:29 -0500 marked best answer problem publishing OpenCV Image from FastRTPS to ROS2

Hello ROS2 community, I'm trying to publish video camera images from opencv using fastRTPS standalone to ROS2 Node. I've copied Image.idl from ROS2, built it like the HelloWorld example from fastRTPS. changed topicname to rt/topicname and added the DS_ namespace as the answer in this post suggests link. when I try to publish the image it shows on ROS2 network using ros2 topic echo but after filling the data field of Image message with OpenCV MAT data. nothing shows. I use the following function to convert OpenCV MAT to Image Message

 void toImageMsg(sensor_msgs::msg::Image & ros_image, cv::Mat &image)
{
ros_image.height(image.rows);

ros_image.width(image.cols);

ros_image.encoding("bgr8");

ros_image.step(image.cols * image.elemSize());

size_t size = ros_image.step() * image.rows;

ros_image.data().resize(size);

memcpy(&ros_image.data()[0], image.data, size);
}

then mp_publisher->write(&st);

what I'm doing wrong?

the full project is here https://github.com/HemaZ/FastRTPS-ROS2

thank you in advance

2020-01-27 06:57:19 -0500 received badge  Popular Question (source)
2020-01-27 06:45:00 -0500 answered a question problem publishing OpenCV Image from FastRTPS to ROS2

here is an example for anyone wondering how to do it. https://github.com/HemaZ/FastRTPS-ROS2

2020-01-24 09:19:23 -0500 asked a question problem publishing OpenCV Image from FastRTPS to ROS2

problem publishing OpenCV Image from FastRTPS to ROS2 Hello ROS2 community, I'm trying to publish video camera images fr

2018-08-06 19:02:34 -0500 received badge  Popular Question (source)
2018-08-06 19:02:34 -0500 received badge  Famous Question (source)
2018-08-06 19:02:34 -0500 received badge  Notable Question (source)
2018-06-08 21:48:45 -0500 edited question Waiting for service /gazebo/spawn_urdf_model error

Waiting for service /gazebo/spawn_urdf_model error hello, i was following this video to learn ROS https://www.youtube.

2018-06-08 14:28:38 -0500 asked a question Waiting for service /gazebo/spawn_urdf_model error

Waiting for service /gazebo/spawn_urdf_model error hello, i was following this video to learn ROS https://www.youtube.

2018-05-15 02:32:54 -0500 asked a question gpg: keyserver receive failed: Server indicated a failure

gpg: keyserver receive failed: Server indicated a failure hello everyone im trying to install ros following the instruc

2018-05-15 02:32:54 -0500 asked a question error installing ros "gpg: keyserver receive failed: Server indicated a failure"

error installing ros "gpg: keyserver receive failed: Server indicated a failure" hello everyone im trying to install ro