ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

janisa9's profile - activity

2021-03-05 12:22:37 -0500 received badge  Student (source)
2020-11-09 03:50:49 -0500 received badge  Famous Question (source)
2020-11-09 03:50:49 -0500 received badge  Notable Question (source)
2020-11-09 03:50:49 -0500 received badge  Popular Question (source)
2019-05-20 02:29:22 -0500 marked best answer Origin of the mesh resource.

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 image description

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

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

2019-01-29 03:37:30 -0500 asked a question Premature success using ur_modern_driver and high deacceleration

Premature success using ur_modern_driver and high deacceleration Originally I addressed this issue/question at ur_modern

2018-02-02 03:45:48 -0500 received badge  Famous Question (source)
2018-01-15 17:48:18 -0500 received badge  Famous Question (source)
2017-11-28 14:14:24 -0500 received badge  Notable Question (source)
2017-11-28 08:58:31 -0500 received badge  Popular Question (source)
2017-10-13 02:49:53 -0500 received badge  Enthusiast
2017-10-11 02:56:48 -0500 received badge  Organizer (source)
2017-10-11 02:32:48 -0500 asked a question Motion planning and controlling robot (YUMI) with two arms.

Motion planning and controlling robot (YUMI) with two arms. Hi there, So I have this situation. I can't figure out how

2017-08-16 07:09:17 -0500 commented answer Origin of the mesh resource.

Download object here . Hope you can open it, format which I need is STL.

2017-08-16 07:05:14 -0500 commented answer Origin of the mesh resource.

Did you try this for STL file format?

2017-08-16 05:20:38 -0500 received badge  Notable Question (source)
2017-08-16 03:33:24 -0500 received badge  Editor (source)
2017-08-16 03:33:24 -0500 edited question Origin of the mesh resource.

Origin of the mesh resource. So i have made my model in solidworks exported it as binary STL file with origin in center

2017-08-16 03:24:13 -0500 received badge  Supporter (source)
2017-08-16 03:11:18 -0500 edited question Origin of the mesh resource.

Origin of the mesh resource. So i have made my model in solidworks exported it as binary STL file with origin in center

2017-08-16 02:23:30 -0500 received badge  Popular Question (source)
2017-08-16 01:52:01 -0500 commented answer Origin of the mesh resource.

Thats exactly what I did, even checked it twice if i saved it with coordinate system which I defined, but nothing, origi

2017-08-15 08:41:34 -0500 asked a question Origin of the mesh resource.

Origin of the mesh resource. So i have made my model in solidworks exported it as binary STL file with origin in center