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

rosberrypi's profile - activity

2023-05-05 18:58:23 -0500 received badge  Famous Question (source)
2023-05-02 12:43:17 -0500 marked best answer publishing a cv2 image with cv_bridge

I wrote a basic node that reads an image from a local folder and publishes it. However, the topic is empty, i can not display the image when i use the image viewer. The cv2 image is being loaded correctly because i can display it with cv2.imshow function so the problem is the way i convert it to imgmsg.

I am not sure if this line works as it should:

image_message = self.bridge.cv2_to_imgmsg(cv_image, "passthrough")

The whole node is as simple as this:

class image_publisher:
 def __init__(self):
  self.image_pub = rospy.Publisher("image_topic",Image)
  cv_image = cv2.imread('/Pictures/image.png',0)
  self.bridge = CvBridge()
  image_message = self.bridge.cv2_to_imgmsg(cv_image, "passthrough")
  self.image_pub.publish(image_message)
2023-02-16 03:01:32 -0500 asked a question How to pass a variable as an argument to ROS2 service?

How to pass a variable as an argument to ROS2 service? Hello everyone, I would like to know if it's possible to an add

2023-01-23 05:05:46 -0500 asked a question Merging UR5e and Realsense URDFs after hand-in-eye calibration

Merging UR5e and Realsense URDFs after hand-in-eye calibration Hello everyone, I performed hand-in-eye calibration betwe

2022-06-18 12:48:58 -0500 received badge  Notable Question (source)
2022-05-03 03:54:56 -0500 received badge  Famous Question (source)
2022-04-30 13:39:07 -0500 received badge  Popular Question (source)
2022-04-29 02:50:51 -0500 commented answer Give just the application ROS without the code (src)

There is a python library called pyarmor which encrypts python files and packages. Although I am not sure how easy it is

2022-03-25 05:00:44 -0500 asked a question UR in real life after Moveit Setup Assistant

UR in real life after Moveit Setup Assistant Hello all, I am trying to create my own custom application with UR5e + rob

2022-03-25 04:35:56 -0500 received badge  Famous Question (source)
2022-02-26 08:44:16 -0500 commented answer Which ROS version makes sense for Universal Robot applications?

Yes I saw that and that's great, but I meant creating a custom URDF for my own environment with table etc...

2022-02-25 13:03:47 -0500 received badge  Notable Question (source)
2022-02-25 05:46:29 -0500 marked best answer Which ROS version makes sense for Universal Robot applications?

Hello all,

I feel a little bit confused regarding deciding what robotics stack to use for our application with universal robot (ur5e and ur10e) and where to start from.

ROS-industrial seems very well developed and maintained but it is based on ROS-Kinetic which was already EOL in April'21. I found out that there's a fork for ROS-noetic: https://github.com/fmauch/universal_r...

I also consider starting from ROS2, using the universal robot drivers here: https://github.com/UniversalRobots/Un...

However, if I didn't misunderstand, there are some useful features from moveit that are not ported to moveit2 yet, for example moveit setup assistant would be crucial for me since I want to merge urdf models to represent the real environment of the robot.

Also, ros2-galactic EOL is already November'22 and ros1-noetic is still supported until May'25 which I found confusing as well.

I would appreciate some feedback, Thanks in advance!

2022-02-25 05:46:20 -0500 answered a question Which ROS version makes sense for Universal Robot applications?

Thank you for both answers. I think it is a little bit more clearer now. I am familiar with ROS so I am not starting fro

2022-02-25 05:46:20 -0500 received badge  Rapid Responder
2022-02-25 02:23:28 -0500 received badge  Popular Question (source)
2022-02-24 04:05:58 -0500 asked a question Which ROS version makes sense for Universal Robot applications?

Which ROS version makes sense for Universal Robot applications? Hello all, I feel a little bit confused regarding decid

2022-01-22 08:46:22 -0500 received badge  Notable Question (source)
2022-01-21 09:52:03 -0500 marked best answer Universal Robot URDF and xacro structure

Hi all, I am trying to create a custom environment for my UR5e robot and having a little bit of a problem understanding the file structure.

  • I would like to have a fixed, not moving object around 1 meter away from the UR
  • I want to see both the robot and my fixed object in Gazebo and RViz setups

So far, I have extracted the CAD model of my object in .stl format, and created a URDF file where I read that .stl file and I am able to spawn the object both in Gazebo and RViz.

My question is merging that URDF file with the UR setup.

Both xacro files here says that they should not be modified: https://github.com/fmauch/universal_r...

How can I merge them together with my new URDF file?

Where should I call that new xacro file? Here? https://github.com/fmauch/universal_r...

Is that correct/normal that the new object will be a part of robot_description or should I see robot_description and object_description separately? Since my object is not attached to the robot but rather something that should spawn in the environment, it didn't feel quite correct that it is a part of the robot_description.

I am using ROS Noetic with Ubuntu 20.04

Thank you in advance

2022-01-20 09:57:48 -0500 commented question Universal Robot URDF and xacro structure

Thank you for the answer. I am able to spawn the object in gazebo like this, however how do I also attach it to RViz and

2022-01-20 09:56:07 -0500 commented answer Universal Robot URDF and xacro structure

Thank you for your explanation. What is the correct way of defining that .stl object so that it is visible in RViz and t

2022-01-19 09:55:39 -0500 received badge  Popular Question (source)
2022-01-18 10:18:26 -0500 edited question Universal Robot URDF and xacro structure

Universal Robot URDF and xacro structure Hi all, I am trying to create a custom environment for my UR5e robot and havin

2022-01-18 10:17:57 -0500 asked a question Universal Robot URDF and xacro structure

Universal Robot URDF and xacro structure Hi all, I am trying to create a custom environment for my UR5e robot and havin

2022-01-14 04:20:36 -0500 commented question UR10 with RG6 gripper

Hi, Have you found a solution to your problem? It would be great if you could update us. Thank you!

2022-01-14 04:20:31 -0500 commented question UR10 with RG6 gripper

Hi, Have you found a solution to your problem? It would be great if you could update us. Thank you!

2021-10-07 04:39:54 -0500 marked best answer Is it bad practice to declare variables in a callback?

Hi all, I would like to know if I should avoid creating new variables in a callback function since the callback will be executed each time I receive new data, thus creating a new variable again and again. Thanks

2021-10-07 04:39:48 -0500 received badge  Famous Question (source)
2021-08-03 07:40:22 -0500 received badge  Student (source)
2021-06-16 03:56:03 -0500 received badge  Famous Question (source)
2021-02-19 10:48:51 -0500 received badge  Famous Question (source)
2021-02-19 10:48:51 -0500 received badge  Notable Question (source)
2020-12-14 08:39:40 -0500 received badge  Notable Question (source)
2020-12-11 11:55:49 -0500 received badge  Famous Question (source)
2020-11-30 12:37:13 -0500 received badge  Notable Question (source)
2020-11-30 12:37:13 -0500 received badge  Famous Question (source)
2020-10-10 13:42:18 -0500 commented answer How are LaserScan and global_costmap related?

Thank you for your answer Matthias. A follow up question to clear some of my hesitation, for the second use case exampl

2020-10-10 13:35:19 -0500 marked best answer How are LaserScan and global_costmap related?

Hi all,

I am currently working on navigation and I have a question regarding understanding a concept. From what I understood so far, global_costmap is created based on the pre-loaded static map by adding an inflation layer using robot footprint. So I assumed that the real time sensor readings from the robot such as laserscanners are only included in local_costmap. But the diagram on move_base page shows that LaserScan topic is used both in global and local costmaps. Could someone explain me how exactly are we using laser data in global_costmap?

Thanks in advance.

2020-10-05 01:25:38 -0500 received badge  Notable Question (source)
2020-10-04 07:59:34 -0500 received badge  Popular Question (source)
2020-10-03 05:48:42 -0500 asked a question How are LaserScan and global_costmap related?

How are LaserScan and global_costmap related? Hi all, I am currently working on navigation and I have a question regard

2020-06-26 11:06:22 -0500 received badge  Popular Question (source)
2020-06-12 10:39:56 -0500 marked best answer Difference in rostopic hz and fps of a camera

Hi all, I am using turtlebot3 burger in which I'm using a rasp camera v2 attached to the Raspberry Pi with raspicam_node and a Host PC where I run my image processing nodes. Therefore, I need to transfer the captured raw images via wireless network. I am experimenting with different resolutions and frame rates at the moment to find out which is the most effective way. However, I have a doubt about the way I validate my results. I am using rostopic hz in my raspberry pi to find out the publishing rate of the camera, which is around 35-40 FPS for 1280x720 and doing the same thing in my local pc in which I get very different results like 1-2 hz to 10-15 hz. I know that this might be about the network but my question is, when I get 1-2 hz as a result of rostopic hz, I launch rqt_image_view and somehow the displayed capture does not look like 1-2 FPS but higher. So I am wondering if there is a better way to validate regarding the frame rate I receive from the subscriber, other than rostopic hz. Thanks in advance

2020-06-12 10:39:54 -0500 received badge  Commentator
2020-06-12 10:39:54 -0500 commented answer Difference in rostopic hz and fps of a camera

That is indeed what I ended up doing yesterday, I think my hesitation was because I was not waiting a certain amount of

2020-06-12 10:38:04 -0500 received badge  Popular Question (source)