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

filtered Sawyer missing links #44

Open
yufeiwang63 opened this issue Apr 22, 2023 · 4 comments
Open

filtered Sawyer missing links #44

yufeiwang63 opened this issue Apr 22, 2023 · 4 comments

Comments

@yufeiwang63
Copy link

yufeiwang63 commented Apr 22, 2023

Hi, Thanks for this great packge!

I am using this for filtering the sawyer robot. However, I found that the filtered results are missing some of the sawyer links -- it only filters the base and the pedestal:
image

However, Rvis can correctly load and render the full urdf:
image

Here is my launch file, modified to be used with RealSense:

<launch>
  <arg name="nodelet" default="false"/>

  <!-- Launch nodelet -->
  <node if="$(arg nodelet)" pkg="nodelet" type="nodelet" name="realtime_urtf_filter_nodelet" args="load realtime_urdf_filter/RealtimeURDFFilterNodelet camera_nodelet_manager" output="screen">
    <remap from="~input_depth" to="/camera/aligned_depth_to_color/image_raw"/>
    <remap from="~output_depth" to="/camera/aligned_depth_to_color_filtered/image_raw" />
    <remap from="~output_mask" to="/urdf_filtered_mask" />

    <rosparam command="load" file="$(find realtime_urdf_filter)/launch/filter_parameters.yaml"/>
  </node>

  <node unless="$(arg nodelet)"
    pkg="realtime_urdf_filter" type="realtime_urdf_filter" name="$(anon realtime_urdf_filter)" output="screen">
    <remap from="~input_depth" to="/camera/aligned_depth_to_color/image_raw"/>
    <remap from="~output_depth" to="/camera/aligned_depth_to_color_filtered/image_raw" />
    <remap from="~output_mask" to="/urdf_filtered_mask" />

    <rosparam command="load" file="$(find realtime_urdf_filter)/launch/filter_parameters.yaml"/>
  </node>

  <!-- Load an example URDF -->  
  <!-- <param name="robot_description_2" command="$(find xacro)/xacro $(find sawyer_description)/urdf/sawyer_gpt.urdf.xacro electric_gripper:=false"/> -->
  <!-- <param name="robot_description_2" textfile="sawyer_description/urdf/sawyer.urdf"/> -->
  <param name="robot_description_2" textfile="sawyer.urdf"/>

  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher">
    <param name="tf_prefix" value="filter_sawyer"/>
  </node>
</launch>

And here is my filter_parameters.yaml:

fixed_frame: /base
camera_frame: /camera_depth_optical_frame
camera_offset:
  translation: [0.0, 0.0, 0.0]
  rotation:    [0.0, 0.0, 0.0, 1.0]
# There is one entry for each URDF that should be filtered
models:
- model: "robot_description_2"
  tf_prefix: "/filter_sawyer"
  geometry_type: "visual" # "visual" or "collision"
  scale: 1.0
  ignore: []
# how far in front of the robot model is still deleted? (e.g. 0.05 = 5cm)
depth_distance_threshold: 0.05
show_gui: true
filter_replace_value: 0

Any suggestions on why this is happening would be appreciated!

@yufeiwang63
Copy link
Author

here is the sawyer urdf for your reference (converted to .txt so it can be uploaded to github
sawyer_urdf.txt
)

@blodow
Copy link
Owner

blodow commented Apr 22, 2023 via email

@yufeiwang63
Copy link
Author

Thanks for your quick reply. However, if I change the loading of the urdf from visual to collision, and I manually commented all the visual property, i.e., all the mesh loading part of the urdf file, it still does not load correctly, so I guess it should not be a mesh loading issue?

image

Do you have any more suggestion on why this might still happen? Thanks!

@blodow
Copy link
Owner

blodow commented Apr 22, 2023 via email

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

No branches or pull requests

2 participants