04-06-2017 09:21 AM
Dear Friends,
I am trying to find any information about how to create my own sensors in LabView Robotics Simulation. There is a example of robotics simulation with iRobot Create where the robot has a set of custom sensors, as can be seen in the Robot Simulation Model Builder (Bumpers, wall sensor, etc.). However, I can not find any material how to actually create one myself. I have tried to export the model and importing it to another project, but that does not seem to work either.
Any hint would be highly appreciated.
With kind regards,
Mart
04-18-2017 07:14 AM
Hello again,
I have now gone over the UI with a fine toothed comb and it seems this feature is not implemented (yet?).
I did find a sort of a "hack" and was able to reproduce the result:
1) I copied the sensors part from iRobot Create examples manifest file to a new XML file and formatted this similarly to other sensors' data files (see attached file, change the txt to xml, could not post the latter),
2) placed the file to .\LabVIEW 2016\resource\plugins\NewDialogFiles\ProjectWizards\Robotics\LV4R_SIM\Config\Sensor folder.
3) Now I can use this sensor in my project.
However, this is only a work-around and I generally do not like to mess with LabView's program folder (especially on a public computer).
The question still stands: How would one do this in a more elegant/official way?
Is there some sort of programmatical way to do this - say take a robot's component and cast it's class from physical object to sensor object? How would this exactly work (I have tried but failed, up to this point)?