# Difference with simulator

**URL:** <https://forum.hello-robot.com/t/difference-with-simulator/936>\
**Category:** Ask\
**Created:** [March 18, 2024, 2:49am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936 "2024-03-18T02:49:27Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [March 18, 2024, 2:49am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/1 "2024-03-18T02:49:27Z")

</div>

Hello,  
Our lab has ordered a stretch 3 from your company. But it will take 1-2 months to arrive at our lab. Now, I am testing my own code using simulator from [GitHub - hello-robot/stretch\_ros: ROS packages for the Stretch mobile manipulators from Hello Robot Inc.](https://github.com/hello-robot/stretch_ros). I guess it is not corresponding to the latest stretch version. Is it? What’s the main differences between the gazebo simulator from the above link with the real stretch 3 robot, like sensors? rostopics? services? Thank you very much for your help.

Yongbo

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [March 20, 2024, 3:20am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/2 "2024-03-20T03:20:13Z")

</div>

Hi @Yongbo, welcome to the forum! Yes, the Gazebo Classic simulator in Stretch ROS 1 simulates Stretch RE1 and Stretch 2, but not Stretch 3. In terms of simulation differences, you’ll notice that the wrist Realsense camera, the head nav camera, and the hardware description (URDF) from Stretch 3 are not simulated. There’s also other differences between the API provided by the simulator and the API provided by the robot’s ROS drivers. These differences are [described here](https://github.com/hello-robot/stretch_ros/tree/noetic/stretch_gazebo#differences-in-gazebo-vs-stretch).

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [March 20, 2024, 11:46pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/3 "2024-03-20T23:46:50Z")

</div>

Thank you very much for your response. Do you have the complete URDF file for the new robot? You know I would like to use the arm, so the accurate URDF is important for the inverse kinematic.

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [March 20, 2024, 11:59pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/4 "2024-03-20T23:59:17Z")

</div>

Yes, you may find a complete URDF for Stretch 3 in this repo: [GitHub - hello-robot/stretch\_urdf: URDFs for the Stretch mobile manipulators from Hello Robot Inc.](https://github.com/hello-robot/stretch_urdf?tab=readme-ov-file#overview)

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [March 21, 2024, 12:10am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/5 "2024-03-21T00:10:24Z")

</div>

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [March 24, 2024, 8:15am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/6 "2024-03-24T08:15:24Z")

</div>

Hi @bshah , because the robot does not come to our lab, I am using the gazebo to load the URDF. In order to follow the stretch\_ros, I manually change the link “link\_gripper\_s3\_body” by “link\_gripper” in stretch\_tool\_sg3.xacro file. After loading it, I find that this urdf is not similar (seem to be not correct) to the controllable one in stretch\_ros. The lift is inserted into the ground and the base\_link is shown as a large block, which are strange, as shown in the first figure. The old simulator stretch\_ros is fine as shown in second figure. Any similar urdf with the controller and fit for gazebo for stretch 3?  
 ![Screenshot from 2024-03-24 19-07-21](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/a37a7937c79d2000ae977781597ed785c9f04b66.png)

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [March 24, 2024, 8:16am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/7 "2024-03-24T08:16:15Z")

</div>

I am a new user. One figure only for my response. The second one is here. Thank you very much.

 ![Screenshot from 2024-03-24 19-12-56](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/6456c6fd44583d6b095988d7e15d19fe26586922.png)

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [March 27, 2024, 3:13am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/8 "2024-03-27T03:13:27Z")

</div>

Hi @Yongbo, looks like URDFs in Stretch URDF include a ground link because the link is used in the self-collision avoidance feature in Stretch’s SDK to prevent unwanted collisions between the arm and the ground.

![Screenshot from 2024-03-26 23-10-45](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/428adb1fa0fc50f6afce80242705b71c54021b0d.png)

You can remove it by looking for `link_ground` and `joint_ground` in the `stretch_main.xacro` file for the URDF you’re copying.

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [April 3, 2024, 11:34pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/9 "2024-04-03T23:34:13Z")

</div>

Sorry for my delay. I am just back from annual leave. Yes, that link is the ground, which is easy to remove. However, the inserted long tube is the arm “link\_arm\_l3”. Could you have a check whether the file is originally correct or not? Thank you very much. I am using “stretch\_description\_SE3\_eoa\_wrist\_dw3\_tool\_tablet\_12in.urdf”.

 ![图片](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/ab1d40df910aa796e34fd213a86bd4b1b27606e5.jpeg)

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [April 9, 2024, 4:24pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/10 "2024-04-09T16:24:21Z")

</div>

Hi @Yongbo, I’ve visualized the URDF (“stretch\_description\_SE3\_eoa\_wrist\_dw3\_tool\_tablet\_12in.urdf”) and everything looks okay:

 ![Screenshot from 2024-04-09 12-18-44](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/821d757304922d38443100ececd3ecf605362c27.png)

I’d recommend publishing your experiment to a Github repo, so I can try to reproduce the issue you’re seeing.

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [April 12, 2024, 4:10pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/11 "2024-04-12T16:10:28Z")

</div>

Thank you very much for your response. I have found the error and now the robot can be launched in gazebo. I find the gripper has been changed with high degree of freedom. The previous version in stretch\_ros only define the control of the yaw. Do you have any new file with control for the new gripper? Or a better option is the control file for the whole robot run in ROS1. Thank you very much.

 ![Screenshot from 2024-04-13 02-09-26](https://canada1.discourse-cdn.com/flex030/uploads/hello_robot2/original/1X/7589c0eeaecd3599372a06bc26d6f4fd38c8f3d4.png)

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [April 12, 2024, 4:35pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/12 "2024-04-12T16:35:27Z")

</div>

Hi @Yongbo, that’s great to hear! Would you describe the error / what you’ve changed to fix it?

You can find the definition of the pitch/roll transmissions in this file:

> <https://github.com/hello-robot/stretch_ros/blob/noetic/stretch_gazebo/urdf/stretch_gazebo_dex_wrist.urdf.xacro#L527-L611>

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [April 13, 2024, 1:55am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/13 "2024-04-13T01:55:26Z")

</div>

As mentioned before, It is my fault. I manually change the link “link\_gripper\_s3\_body” by “link\_gripper” in stretch\_tool\_sg3.xacro file, which is wrong. Thank you very much for your quick response.

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [April 15, 2024, 2:44am UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/14 "2024-04-15T02:44:10Z")

</div>

Sorry to trouble you again. Today, I try to use moveit to control the new robot. But I find that it seems that the link link\_gripper\_s3\_body has collision with the link ‘link\_gripper\_finger\_right’ at the start state and the moveit group can not initialize the planning problem. As shown below:

**Found a contact between ‘link\_gripper\_s3\_body’ (type ‘Robot link’) and ‘link\_gripper\_finger\_right’ (type ‘Robot link’), which constitutes a collision. Contact information is not stored.**  
**[INFO] [1713143859.952075948, 420.239000000]: Collision checking is considered complete (collision was found and 0 contacts are stored)**  
**[INFO] [1713143859.952094551, 420.239000000]: Start state appears to be in collision with respect to group stretch\_arm**

Do you know how to revise “link\_gripper\_s3\_body” to avoid the collision and keep the urdf following the real robot? I have upload my urdf here [GitHub - cyb1212/urdf: The used robot](https://github.com/cyb1212/urdf.git). I am using “urdf/xacro/stretch\_description\_SE3\_eoa\_wrist\_dw3\_tool\_sg3.xacro” and its genrated urdf “urdf/xacro/stretch.urdf”.

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [April 15, 2024, 4:55pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/15 "2024-04-15T16:55:00Z")

</div>

Hey @Yongbo, would you mind opening a new thread to discuss this? It’ll be helpful to keep the two different topics in separate threads.

---

<div class="post-metadata">

**Author:** ![Yongbo](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@Yongbo](https://forum.hello-robot.com/u/Yongbo)\
**Post date:** [April 15, 2024, 11:41pm UTC](https://forum.hello-robot.com/t/difference-with-simulator/936/16 "2024-04-15T23:41:48Z")

</div>

I have open a new topic in [How to add moveit to the new URDF? Or revise URDF?](https://forum.hello-robot.com/t/how-to-add-moveit-to-the-new-urdf-or-revise-urdf/954).
