I was wondering is it possible if someone sends me a txt. file with robot axes positions, BASE and TOOL DATA. How can I read it and import the positions state? I’m guessing some kind of python script, but I have no idea.
For example:
I get a txt file with (A1 : 90, A2: -120, A3: 133, A4: 0, A5:80, A6: 0 )
How can I import these axis joints positions inside of a simulation?
Yes, thank you and sorry for the duplication of the topic, I watched the tutorials and I did that, but I can’t find a way to assign a different value to TOOL_DATA and BASE_DATA and switch between tools and bases ;[
Attached is a python command that imports csv file. Based on the import options, you can use the csv data either as coordinate or as joint values. Check the csv format and define your data based on that.
Extract the python command to your MyCommands folder and refer to the video to use it.
Good Add-On. In VC4.9PREMIUM. We find that the robot that imported VC can work normally, but there are some unknown positions when importing other brands of robots. Is there any way to do that?
Thanks!
I tried to use this today with Visual Components Premium 4.10. With your example file (position.csv) it works, but not with my own.csv file. For some reason I got this error message:
Okay I solved it. I had an exported excel file, I used “save as” to make it, “.csv” and it used “;” as delimiter, while the python script was expecting “,” as delimiter, so I just replaced and it works just fine. (Okay almost fine. If I set 0 for base and tool it uses Base 1, and tool 1.) But it did the bigger part of the work so I’m happy.