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

How to load fanuc model(eg.m710ic50.xacro) in gazebo? #315

Closed
zhaoyu19920930 opened this issue May 14, 2021 · 2 comments
Closed

How to load fanuc model(eg.m710ic50.xacro) in gazebo? #315

zhaoyu19920930 opened this issue May 14, 2021 · 2 comments

Comments

@zhaoyu19920930
Copy link

zhaoyu19920930 commented May 14, 2021

Hi, I am making simulation on gazebo with the model m710ic50.xacro, here is my launch file:

<launch>
<arg name="limited" default="false" doc="If true, limits joint range [-PI, PI] on all joints."/>
<arg name="paused" default="false" doc="Starts gazebo in paused mode"/>
<arg name="gui" default="true" doc="Starts gazebo gui"/>
<!-- startup simulated world -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" default="worlds/empty.world"/>
<arg name="paused" value="$(arg paused)"/>
<arg name="gui" value="$(arg gui)"/>
</include>
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find fanuc_m710ic_support)/urdf/m710ic50.xacro'"/>
<node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model" args="-urdf -param robot_description -model fanuc_m710ic50 -z 0.2" respawn="false" output="screen"/>
</launch>

But the model can not load in the gazebo, I find the m710ic50.xacro has no inertial and mass parameters.

My confusions:
(1) Can I make simulation on gazebo with m710ic50.xacro model?
(2) If yes, how to configure the inertial and mass?Can you show some examples?

Hope to receive your response soon, Thanks.

@gavanderhoorn
Copy link
Member

Can I make simulation on gazebo with m710ic50.xacro model?

not without adding inertial and dynamics elements to m710ic50_macro.xacro.

If yes, how to configure the inertial and mass?Can you show some examples?

you'll have to either get that information from Fanuc, find literature on system identification performed on that robot, or use estimates.

There is a related PR (ros-industrial/fanuc_experimental#20) which you could perhaps use as a template to see how to add Gazebo support for a particular model/variant.

The best way to do it is to separate Gazebo support as much as possible, and introduce a fanuc_m710ic_gazebo package. The referenced PR should give you an idea how you could do that.

@gavanderhoorn
Copy link
Member

We used to track adding Gazebo support in #145. However it was deemed too much work which could not be justified (demand seems low).

As that situation hasn't really changed, I'm going to close this issue as well.

@zhaoyu19920930: feel free to keep commenting of course.

We can always re-open.

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