KIT-ISAS / iviz

Utilities for visualizing and working with ROS data using C# and Unity. Part of the ROBDEKON project.
MIT License
121 stars 27 forks source link

Model import #13

Closed dhu5-utk closed 3 years ago

dhu5-utk commented 3 years ago

Thank you for your great work. I am trying to import my own robot model to Unity. However, the model failed to be imported with errors. My computer is running win10 and I create a ros_package_path file at c:/users/account/.iviz/ros_package_path. I also enable model service in the setting.

image

akzeac commented 3 years ago

Hi, that's a weird error. Usually the error is that the service cannot find the file, but in your case iviz cannot find its own service. Do you have a ROS installation and can you do rosservice list? Does /iviz/get_model_resource appear there?

dhu5-utk commented 3 years ago

Thank you for your quick response. I have attached the message of rosservice list on Ubuntu 16 for jackal robot. image This is the ros_package_path on my windows computer running iviz. image I tried to run with the turtlebot robot in the gazebo. I got another error message. The sensor data can be correctly visualized. image image

dhu5-utk commented 3 years ago

I just noticed that I mistakenly closed the issue. I am still not able to get this issue fixed. Thank you for your help.

akzeac commented 3 years ago

Hi Jeffery,

sorry, somehow I lost track of this email. Your error is now "failed to find resource path". This means that the service was found successfully, but the assets weren’t.

I see that you have "/opt/ros/kinetic/share" as the folder where the ROS assets are to be found. However, this appears to be a Linux path, but the screenshot shows "C:\Users\…" as the location of the file, which is a Windows path.

How is your setup? If the ROS assets are on the Linux system, you need to run a provider on the Linux side, either iviz or the iviz_model_service node.

Otherwise, if you want to stay on Windows, you need to copy the assets there. You can create a folder on Windows (for example, "ROS" in your Windows user folder), copy the turtlebot_description folder into it, and then write the full path of this 'ROS' folder into ros_package_path.

Cheers, Antonio

Am 07.06.2021 um 02:36 schrieb JefferyDaHu @.***>:

I just noticed that I mistakenly closed the issue. I am still not able to get this issue fixed. Thank you for your help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/KIT-ISAS/iviz/issues/13#issuecomment-855495934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPNODV56JWPCJCIKRDMKW3TRQIAXANCNFSM455AHJCQ.

dhu5-utk commented 3 years ago

Hi Antonio,

Thank you for your detailed instruction. I followed the instruction as indicated in the figure. iviz app still fails to find the resources. image In addition, I tried to run iviz app on Linux along with ROS and it worked fine. I can also manually add the robot in windows. I think those two options work for me now. If I figure out there are any issues with my windows settings, I will update here in the future. Thank you for your contribution in developing such a great tool and making it available.

Thanks, Jeffery