Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 68 articles
Browse latest View live

Problem loading a mesh .stl

$
0
0
Hi ros users. I have just created a mesh .stl with Blender. But when I try to loading terminal says: Error [Visual.cc:1938] Unable to insert mesh[Vertex Buffer: Out of memory] How can I fix it? Thanks!

Rviz and Nodelets

$
0
0
Is there a way to use nodelets that would allow drawing objects in Rviz without having to send messages/copy data? I would like to visualize a large triangle mesh that gets updated periodically (probably ~1 Hz) and don't want to have to send out a message/waste time copying data. My understanding is that this is the primary motivation for nodelets, but I'm not sure if it would be possible to tack on my potential mesh nodelet onto the main Rviz process. Any ideas? Thanks!

Adding PCL Nurbs support to ROS

$
0
0
System: Kubuntu 14.04 LTS ROS Indigo PCL 1.7.1 I'm trying to get the tutorial on [generating mesh from a cloud using NURBS](http://pointclouds.org/documentation/tutorials/bspline_fitting.php) working. In the beginning it is stated that the **on_nurbs** (part of **surface**) module is not included in the upstream version of PCL (for **ROS Indigo** this is **libpcl version 1.7.1-3**) and indeed I cannot find it anywhere in my ROS installation (including the required headers also causes errors upon compilation due to the fact that those files are missing). However I have also read that there is a special [patch provided by PCL for compatibility with ROS](http://www.pcl-users.org/How-to-integrate-PCL-with-ROS-as-an-external-library-td4026185.html), which I cannot find. How do I proceed if I want to add this feature in particular to an already installed ROS with all upstream PCL packages? I can download the source for 1.7.1, build those but this compatibility issue bothers me a lot. I really don't want to mess up my ROS configuration for something that might not even work at the end. The **pcl_ros** used for interfacing the PCL library is obviously bound to the version that ROS is shipped with.

Extracting the visible mesh surface

$
0
0
Hi, I'm trying to get the intersection surface between RGBD camera FOV and mesh model.. this intersection surface is the visible mesh surface from the RGBD camera point of view. I tried to use PCL::RangeImage since it simulates the sensor FOV, position and orientation and performs z buffering to extract the visible surface but I get the mesh part that is inside the FOV frustum regardless of its visibility to the camera as it is shown in the following image link : [image](https://www.dropbox.com/s/e1catrukh92oq8l/Capture.JPG?dl=0) Here is the github link of the code ( I preformed frustum culling then range image and I also used the loaded mesh points directly but I get the same result ): [code link](https://github.com/kuri-kustar/aircraft_inspection/blob/master/component_test/src/frustum_test.cpp) does the pcl::RangeImage is supposed to do that although it is applying z buffer? does PCL include another function to extract the visible surface? Thanks

pcl (pointcloud) to mesh

$
0
0
Hi, I want to convert pointcloud data set to mesh. What I know is that first I need to convert pointcloud recorded in a rosbag to pcd, then pcd to ply, and finally ply to mesh using MeshLab. I can create number of pcd files from pointcloud using rosrun pcl_ros bag_to_pcd but I have no idea how to convert pcd files to a ply file. Can anyone suggest me how to do pcd to ply or if there is a better way to convert pcl to mesh? Thank you.

Rviz trying to display shape_msgs Mesh

$
0
0
Hi There, I've created a ROS node that uses a lidar scanner and a pan tilt unit to create 3d scans. These scans are published by the node as shape_msgs::Mesh messages. I was hoping to be able to visualize these meshes live in Rviz as they are created. But they don't seem to be supported by Rvis V1.11.10 in Ros Indigo. Is there a message type for a mesh that does work in rviz? Ideally I'd like to be able to display texture mapped meshes but I can't find a standard message type that supports that? At some point soon I'll be needing to display a 3D terrain map in Rvis to if that's possible? Thanks, Pete

Load a mesh and publish as shape_msgs::Mesh?

$
0
0
Is there a node that will load .dae/.stl/.mesh from disk and then publish it as a `shape_msgs/Mesh`? It looks like it requires Ogre C++ code and there are examples here like http://answers.ros.org/question/172720/problem-loading-mesh-with-createmeshfromresource/ or http://answers.ros.org/question/147886/creating-a-collisionobject-from-a-mesh-in-hydro/ - I'll make the node myself but would rather use an established one if available. A bonus variation would be a node that can subscribe to a `visualization_msgs::Marker` and publish it out as a `shape_msgs/Mesh` (though textures would be lost).

How do I make my meshes appear shaded?

$
0
0
Most of the time when visualizing meshes in RViz they appear edgy, the shading is not good: ![image description](/upfiles/14556573489929859.png) How do I make my mesh appear smooth?

Convert ros markers into pcl or mesh

$
0
0
Hi. I am a newbie in ROS. Recently, I start working on the SLAM method(developed by someone else ). I have a node which publishes to the topic /Map. The messages are of type: visualization_msgs/Marker. Example:

x: 0.0703901350498
y: 0.258601367474
z: 0.103628642857

However, the output I wanted is something like point cloud or mesh so that I can import them into simulators like Gazebo. I tried some research online but none of the results answer my question. I wonder if it is possible to convert those Markers into pointcloud or mesh?

Thanks in advance.

URDF Mesh filetypes?

$
0
0
What are all the possible filetypes I can use in the , tag? I'm actually trying to use another URDF file as a mesh filetype, but it doesn't seem to be possible.

Rviz Marker Triangle List: bad shader

$
0
0
Why if i create a Mesh triangle-by-triangle by using *visualization_msgs::Marker* (type=TRIANGLE_LIST) the shader doesn't take into account normals ? Surface shader is not working. See attached image: ![image description](/upfiles/14777336153720739.png)

Mesh information (vertices, links, triangles) from model in Rviz

$
0
0
How could I obtain the mesh information rendered from a model from URDF/XACRO file after being rendered in Rviz?

Gazebo how to read mesh material with sensor

$
0
0
Hi all, I have a 3d semantic model of a large-scale environment. That is, an .obj file with the scene geometry along with the .mtl file where the materials are the face labels (e.g. ceiling,floor,wall,etc...). I imported it into gazebo by converting the obj file into dae and I'm able to visualize it correctly. What I would like to do now is to read for each face of the mesh, currently in the field of view of the camera mounted on a robot, the corresponding label. Can someone please show me how this can be done? Thanks! Federico

Is it possible to use relative path for mesh filename in URDF?

$
0
0
I have my mesh STL in the same directory as my URDF so I was hoping I could reference it via a relative path. This works as expected But I would like to do something like this or this Where it assumes the mesh path is relative to the URDF path. Is this possible somehow?

Origin of the mesh resource.

$
0
0
So i have made my model in solidworks exported it as binary STL file with origin in center of the object. When I am trying to visualize in rviz the origin is somewhere in corner of my mesh file, not where i defined it in solidworks. When I create primitive shape, like BOX, everything is ok and the origin is in the center. My question is following -- Is there something wrong with my STL file, or what do I need to do, to define the origin for mesh file? MARKER_MESSAGE.header.frame_id = TCP_LINK_NAME; MARKER_MESSAGE.type = visualization_msgs::Marker::MESH_RESOURCE; MARKER_MESSAGE.mesh_resource = "file:///path/can_stl_last_bin.STL"; MARKER_MESSAGE.pose = TCP_TO_BOX_POSE; MARKER_MESSAGE.id = 0; MARKER_MESSAGE.color.r = 0; MARKER_MESSAGE.color.g = 0; MARKER_MESSAGE.color.b = 1; MARKER_MESSAGE.color.a = 0.5f; MARKER_MESSAGE.lifetime = ros::Duration(100); // persists forever MARKER_MESSAGE.frame_locked = true; MARKER_MESSAGE.scale.x = 1; MARKER_MESSAGE.scale.y = 1; MARKER_MESSAGE.scale.z = 1; UPDATE!! I can see my coordinate system in Blender, but is is not origin. ![image description](http://www.bildites.lv/images/kbz4grhd/76031/thumbnail) ![image description](http://www.bildites.lv/images/gs4m43e2/76031/thumbnail) So in Blender as AndyZe said, I changed the origin to my object coordinate system and everything works for now, and i can visualize object in rviz with origin in center of object. ![image description](http://www.bildites.lv/images/ewr2kzxn/76032/thumbnail) But anyway my initial question remains unclear because I didn't work it out how to export from solidworks my coordinate system as origin, even using this tutorial [here](https://www.gsc-3d.com/articles/2016/08/how-export-using-custom-coordinate-system-solidworks)

RVIZ Marker STL Mesh Color and Transparency Issues

$
0
0
Hi, Has anyone been able to get STL meshes to properly display with the specified color and alpha values when generating the messages in roscpp and visualizing them in RVIZ? For some reason, I can get the meshes to display but no matter how I change the color and alpha values, it stays the same solid gray color and opacity (I set mesh_use_embedded materials to false). Thanks!

How to resize meshes in URDF?

$
0
0
I am currently drawing out my robot using URDF. I am at the end of the first URDF tutorial (see http://wiki.ros.org/urdf/Tutorials/Building%20a%20Visual%20Robot%20Model%20with%20URDF%20from%20Scratch#Finishing_the_Model). My problem: once I added my mesh, it is very disproportionate to the rest of the drawing, and I have no idea how to resize the mesh. The tutorial states that: "Meshes can also be sized using relative scaling parameters or a bounding box size" where do I find an example? Where is the documentation? and if no documentation or examples exist, could you please provide an example of code for a "bounding box" or "relative scaling"? More detail: image before meshes are added in urdf file: ![image description](/upfiles/15084487854302512.png) image after meshes are added in urdf file: ![image description](/upfiles/15084488158505269.png) the code importing the meshes: I am building a URDF because it was suggested here: https://answers.ros.org/question/271819/please-suggest-all-packages-to-achieve-slam-for-robot/

confusing RVIZ message says triangle count does not match file size

$
0
0
We were getting an error message from RVIZ saying that our STL file is too small. We upgraded from Kinetic to LoggerHead based on so web searching but nothing fixed the issue. In the end it turned out we needed to ignore that message and look at the next set of messages that told us the resouce could not be located. All it was was changing file://urdf/urdf.urdf to file:///urdf/urdf.urdf ... we were missing a slash. Should the triangle count/file size message be displayed when the file is not found? Should the check for the triangle count in the header and the byte count come after the file is found?

Meshes in moveit setup assistant

$
0
0
Hi all, Pretty quick question: can meshes be used and rendered in urdf files for the moveit_setup_assistant? I ask because currently, when I try to load a urdf with a reference to a .stl file, I get the following error: [rospack] Error: no package/stack given [librospack]: error while executing command And mesh files don't load. Does anyone know why this is? EDIT: I'm actually wondering - is this just a limitation of rviz? Are there certain ways one would have to have their urdf formatted to make all the meshes appear properly? Will only certain filetypes render?

Can I use triangle list from RVIZ to display a polygon mesh from PCL?

$
0
0
Hello, I am trying to display a polygon mesh in real time in rviz. I am using the mesh from pcl (pcl::PolygonMesh). I believe that the only way is to use the triangle list method but I cant seem to get it to work. Thank you
Viewing all 68 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>