Closed Technician13 closed 3 years ago
You can display it in the robot window: https://cyberbotics.com/doc/guide/controller-plugin?version=master#robot-window
Something similar to what this guy did: https://www.youtube.com/watch?v=fISDutZca5g
Here is a sample simulation where the path is drawn directly in the Webots 3D scene: https://www.cyberbotics.com/doc/guide/samples-howto#supervisor_draw_trail-wbt
You can display it in the robot window: https://cyberbotics.com/doc/guide/controller-plugin?version=master#robot-window
Something similar to what this guy did: https://www.youtube.com/watch?v=fISDutZca5g
Thank you for your reply,waht I mean is that the predicted trajectory displayed in webots 3D scene window,I think this is more intuitivei.
Here is a sample simulation where the path is drawn directly in the Webots 3D scene: https://www.cyberbotics.com/doc/guide/samples-howto#supervisor_draw_trail-wbt
Thank you for your reply, this result is similar to the Pen node,the trajectory in this result is the path that robot has finished,what I mean is display the trajectoy that is planned by my algorithm and not been finished by robot.
Thank you for your reply, this result is similar to the Pen node,the trajectory in this result is the path that robot has finished,what I mean is display the trajectoy that is planned by my algorithm and not been finished by robot.
Yes. This is just an example but you can adapt it to draw the path all at once. I would suggest you to look at the sample controller, try to understand it and modify it to your needs.
Thank you for your reply, this result is similar to the Pen node,the trajectory in this result is the path that robot has finished,what I mean is display the trajectoy that is planned by my algorithm and not been finished by robot.
Yes. This is just an example but you can adapt it to draw the path all at once. I would suggest you to look at the sample controller, try to understand it and modify it to your needs.
Okay,thank you very much
How can I add pen to Epuck robot to plot the trajectory while moving.
How can I add pen to Epuck robot to plot the trajectory while moving.
https://www.cyberbotics.com/doc/guide/samples-howto#supervisor_draw_trail-wbt you can look at this project, I think it is helpful for your need, or you can browse the help document and there will be detailed introduction about "Pen", however, I still think this project can meet your needs.
My webots's version is 2020b, now I have built a quadruped robot in webots and I have planned a swing trajectory for its foot, what should I do to show this predicted trajectory in the simulation interface?