jsk-ros-pkg / jsk_recognition

JSK perception ROS packages
https://github.com/jsk-ros-pkg/jsk_recognition
271 stars 189 forks source link

jsk__pcl_ros_utils pointcloud_to_stl file empty #2556

Open matthieuvalentin opened 3 years ago

matthieuvalentin commented 3 years ago

Hello. I try to convert a pcl in a stl file with your node with this launchfile `

<node name="pointcloud_to_stl" pkg="nodelet" type="nodelet" args="standalone jsk_pcl_utils/PointCloudToSTL" output="screen">

<param name="max_edge_length" value="7.5" />
<param name="store_shadow_faces" value="false" />
<remap from="~input" to="/velodyne_points"/>
<rosparam subst_value="true">
  filename: $(arg filename)
</rosparam>

<node name="rviz" pkg="rviz" type="rviz" args="-d $(find jsk_pcl_ros_utils)/sample/config/sample_pointcloud_to_stl.rviz"/>

` The file is well created but empty.

matthieuvalentin commented 3 years ago
<launch>
  <arg name="gui" default="true"/>
  <arg name="filename" default="/../home/save/pointcloud.stl"/>

  <param name="/use_sim_time" value="true"/>

<node pkg="rosbag" type="play" name="player1" args=" -r 0.05  -\-clock /root/bagfiles/processed_2020-09-15-14-49-28.bag" />

  <node name="pointcloud_to_stl"
        pkg="nodelet" type="nodelet"
        args="standalone jsk_pcl_utils/PointCloudToSTL"
        output="screen">
    <param name="triangle_pixel_size" value="0.05" />
    <param name="max_edge_length" value="7.5" />
    <param name="store_shadow_faces" value="false" />
    <remap from="~input" to="/velodyne_points"/>
    <rosparam subst_value="true">
      filename: $(arg filename)
    </rosparam>
  </node>
   <node name="rviz"
          pkg="rviz" type="rviz"
          args="-d $(find jsk_pcl_ros_utils)/sample/config/sample_pointcloud_to_stl.rviz"/>

</launch>