Drawing trajectory of an object
It is possible to attach the pencil tool to an object and draw its trajectory?
Or there is a better way to do that?? I'm doing a robot kinematic simulator and I want to display the end effector trajectory |
Yes, you can link the pencil tool to any object. You could either activate the pencil draw command with an input signal (mouse button, keypress, etc.) or have it draw continuously.
|
Hi Jeff, thank you for your answer
Could you please show me an example of a pencil attached to an object and drawing continuosly? Because I can't make it work properly |
Take a look at the pencil documentation for commands available. The following example script executes the draw command continuously:
Code:
""" |
Thank you Jeff, but what I can't do is to attach the pencil to an osgb object (in this case the robot end effector), how can I do that?
Thank you in advance |
Could you please help me to attach the pencil tool to an osgb object?
|
Have you tried to modify the pencil example code like this:
Code:
robot=viz.add('your_robot_name.osgb') |
I've tried it , but if you add mousetracker , I end up drawing with the mouse.
What I want is to attach the pencil to the end of the robot and the pencil draw the trajectory of the robot end effector |
You can parent or link the pencil tool to any node in Vizard.
|
All times are GMT -7. The time now is 12:52 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC