Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost node #2714

Open
omichel opened this issue Feb 5, 2021 · 0 comments
Open

Ghost node #2714

omichel opened this issue Feb 5, 2021 · 0 comments
Labels
feature Implementation of a major feature

Comments

@omichel
Copy link
Member

omichel commented Feb 5, 2021

It is often useful to represent a ghost of an object, such as a robot, to display a target position or several keyframe positions.
Such ghosts should be visible from the main 3D view, but probably not from the robot cameras.
In order to facilitate the display of such ghosts, we could introduce a new node in Webots: the Ghost node which would inherit from Transform, adding a transparency field and maybe a visibility field to enable/disable the visibility from robot cameras. Hence the Ghost node would add the following fields compared to Transform:

Ghost {
  SFFloat transparency 0.5
  SFBool  visibility   FALSE
}

In addition to this node, we should probably also add some supervisor API function that will allow users to easily create Ghost nodes from other nodes:

wb_supervisor_field_insert_ghost_from_node(WbFieldRef field, int position, WbNodeRef node)

That will allow a supervisor controller process to easily create a ghost in a children list (which may be at root level) from an existing robot, sensor, actuator, solid, transform or group. Then the translation, rotation and scale fields inside the Ghost could be changed by the supervisor if needed.

@omichel omichel added the feature Implementation of a major feature label Feb 5, 2021
@omichel omichel added this to the R2021b milestone Feb 5, 2021
@omichel omichel changed the title Ghost object Ghost node Feb 5, 2021
@omichel omichel modified the milestones: R2021b, R2021c May 26, 2021
@omichel omichel modified the milestones: R2021c, R2022a Oct 25, 2021
@omichel omichel modified the milestones: R2022a, R2022b Dec 3, 2021
@omichel omichel modified the milestones: R2022b, R2022c Jun 13, 2022
@ygoumaz ygoumaz modified the milestones: R2023a, R2023b Nov 8, 2022
@BenjaminDeleze BenjaminDeleze modified the milestones: R2023b, R2024a Jun 12, 2023
@gabryelreyes gabryelreyes removed this from the R2024a milestone Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Implementation of a major feature
Development

No branches or pull requests

4 participants