Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webots urdf/proto resource #2948

Closed
anastasiapan opened this issue Apr 7, 2021 · 2 comments
Closed

Webots urdf/proto resource #2948

anastasiapan opened this issue Apr 7, 2021 · 2 comments

Comments

@anastasiapan
Copy link

anastasiapan commented Apr 7, 2021

Hello
I recently saw a related post on ROS Discourse (https://discourse.ros.org/t/urdf-with-webots/19665) that you plan to migrate from PROTO to urdf. My question is about the features only available in PROTO. The reason I post here and not on Discourse is because I didn't want to derail the conversation there.

So the problem is that we use the connector and to make that work with urdf we found a solution but it is a bit "hacky" and it uses a gazebo feature:

<gazebo>
    <joint name="rod_joint" type="fixed">
      <pose>0.285 0 0 0 0 0</pose>
      <parent>base_front_rod</parent>
      <child>base_back_rod</child>
    </joint>
  </gazebo>

  <!-- GAZEBO control -->
  <gazebo>
    <plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
      <robotNamespace>$(arg robot_namespace)</robotNamespace>
    </plugin>
  </gazebo>

PROTO:

 device [
	 RotationalMotor {
                  name "base_front_rod_joint"
                  maxVelocity 2.0
                  minPosition -0.35
                  maxPosition 0.35
                  maxTorque 40
                }
                PositionSensor {
                  name "base_front_rod_joint_sensor"
                }
              ]
              endPoint Solid {
                translation -0.005330 0.200000 0.044680
                rotation 0.000000 -1.000000 0.000000 3.378992
				children [
                  Connector {
                    translation 0.17271 0 0
                    name "connector_front_rod"
                    model "connector_rod"
                    isLocked TRUE
                    autoLock TRUE
                  }
				]

Would it be possible to simulate the connector in as similar way with urdf? I am asking now because I am trying to be a bit proactive and see if PROTO file utilities will be gone. I can provide with both urdf or proto if you want.

@lukicdarkoo
Copy link
Member

We haven't decided on the architecture yet, but we plan to add a <webots> tag and put everything Webots specific inside:
cyberbotics/urdf2webots#112

That means that Connectors, as well as other Webots specific devices, will be preserved.

We don't have plans on dropping the PROTO support, it will still be the native format.

@anastasiapan
Copy link
Author

Thank you very much for your response! I just misunderstood the post on Discourse then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants