Discussion

Left ArrowBack to discussions page
abeachy_HG24abeachy_HG24 Posts: 79 Handy
I am trying to program a moveP relative to a feature and if I try to use the single step button to step through the waypoints it gives me a compile error that says "Needle_TIP (feature name) is not defined." Does anyone know why this is?
Thanks!

Comments

  • matthewd92matthewd92 Posts: 521Founding Pro, Tactile Sensor Beta Testers Handy
    @abeachy_HG24 I just made a sample program and taught a new feature and then used that to create a moveP structure node.  I then added 3 waypoints under that and copied the first to the end to make a closed square shape.  I was able to step through each of the points without any issues.  I then changed the feature to be a variable by checking the box on the feature and now I get the error you are seeing.  By doing that it's like using a variable waypoint under a move structure.  Unless the program is running the variable is never declared and so you are not able to step through.  Is that the issue you are having?
  • abeachy_HG24abeachy_HG24 Posts: 79 Handy
    @matthewd92 That is correct, we have the variable box checked. I was under the impression that in order to reference a feature that variable box needed to be checked. If it is left unchecked and a moveP is programmed relative to that feature and then I change the feature, will the points adjust based on the new feature?
  • matthewd92matthewd92 Posts: 521Founding Pro, Tactile Sensor Beta Testers Handy
    edited May 17
    @abeachy_HG24 You are correct, if you teach the feature and then use that to teach waypoints they will adjust when you manually change the feature.  The variable feature means that it becomes a variable and you can change the feature in the program and reference it as a variable as well.  This is great for like camera reference planes where you are always going to the center of the plane and then adjusting it for the camera FOV for instance
  • abeachy_HG24abeachy_HG24 Posts: 79 Handy
    Okay, that makes sense now. Thanks!
Sign In or Register to comment.
Left ArrowBack to discussions page