Ask Your Question

AlexROS's profile - activity

2019-05-29 23:03:01 -0600 received badge  Student (source)
2017-11-26 16:03:55 -0600 marked best answer How to import 3D Model COLLADA (.dae) file to RVIZ

Hello,

I am new to ROS and I am having problems importing a 3D Model of a formula car (COLLADA file) i got from 3D warehouse to RVIZ. This is the COLLADA file:

FILE

This is my code. It is working for a simple cube as marker. Now I wanted to change the cube to this formula car using the marker type "visualization_msgs::Marker::MESH_RESOURCE"

visualization_msgs::Marker marker;
marker.header.frame_id = "/my_frame";
marker.header.stamp = ros::Time::now();
marker.ns = "myns";
marker.id = k+current_cone_pos.left.x.size()+current_cone_pos.right.x.size()+1;
marker.type = visualization_msgs::Marker::MESH_RESOURCE;
marker.action = visualization_msgs::Marker::ADD;
marker.mesh_resource = "file://models/v1-01/model.dae";
marker.pose.position.x = 0;
marker.pose.position.y = 0;
marker.pose.position.z = 0;
marker.pose.orientation.x = 0.0;
marker.pose.orientation.y = 0.0;
marker.pose.orientation.z = 0.0;
marker.pose.orientation.w = 1.0;
marker.scale.x = 0.1;
marker.scale.y = 0.5;
marker.scale.z = 0.5;
marker.color.b = 0.0f;
marker.color.g = 0.0f;
marker.color.r = 1.0;
marker.color.a = 1.0;
marker.lifetime = ros::Duration();
visualizer_.publish(marker);

The error that i get using "rosrun rviz rviz" while running my C++ Node is:

Could not load resource [file://models/v1-01/model.dae]: Unable to open file "file://models/v1-01/model.dae".

Thank you guys for your support!

Greetings, Alex

2017-08-08 11:44:28 -0600 edited question How to build alglib library from source with ROS CMake?

How to build alglib library from source with ROS CMake? Hi there, I want to use the ALGLIB library for simple spline in

2017-08-08 11:43:17 -0600 edited question How to build alglib library from source with ROS CMake?

How to build alglib library from source with ROS CMake? Hi there, I want to use the ALGLIB library for simple spline in

2017-08-08 11:42:37 -0600 asked a question How to build alglib library from source with ROS CMake?

How to build alglib library from source with ROS CMake? Hi there, I want to use the ALGLIB library for simple spline in

2017-08-03 07:56:52 -0600 received badge  Enthusiast
2017-07-31 16:19:29 -0600 received badge  Famous Question (source)
2017-07-31 04:30:46 -0600 edited question How to import 3D Model COLLADA (.dae) file to RVIZ

How to import 3D Model COLLADA (.dae) file to RVIZ Hello, I am new to ROS and I am having problems importing a 3D Model

2017-07-31 04:30:46 -0600 received badge  Editor (source)
2017-07-31 04:30:18 -0600 edited question How to import 3D Model COLLADA (.dae) file to RVIZ

How to import 3D Model COLLADA (.dae) file to RVIZ Hello, I am new to ROS and I am having problems importing a 3D Model

2017-07-28 08:54:13 -0600 received badge  Supporter (source)
2017-07-28 08:20:32 -0600 received badge  Notable Question (source)
2017-07-28 07:57:39 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

It worked with this simple cube: [LINK] (https://3dwarehouse.sketchup.com/model/b3e0972ece48c304664cc17fe2c6413a/Yla-Ea

2017-07-28 06:23:03 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

I tried to set the scale parameters to 1000. But that still does not solve the problem. :-/ Did you have a look at the l

2017-07-28 06:21:43 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

I tried to set the scale parameters to 1000. But that still does not solve the problem. :-/

2017-07-28 06:21:29 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

I tried to set the scale parameters to 1000. But that still does not solve the problem. :/

2017-07-28 04:14:06 -0600 received badge  Popular Question (source)
2017-07-28 04:10:15 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

Okay now the error has gone away. But the car is still not visible in rviz

2017-07-28 04:01:26 -0600 commented answer How to import 3D Model COLLADA (.dae) file to RVIZ

Still not working. I have tried the absolute path with the following line of code: marker.mesh_resource = "file://home

2017-07-27 16:49:33 -0600 asked a question How to import 3D Model COLLADA (.dae) file to RVIZ

How to import 3D Model COLLADA (.dae) file to RVIZ Hello, I am new to ROS and I am having problems importing a 3D Model