(body, lower, upper, visible=False, **kwargs)
return body.add(
      'site', type='box', pos=pos, size=size, group=group, **kwargs)
Adds a site for visualizing a bounding box to an MJCF model.

  Args:
    body: An `mjcf.Element`, the (world)body to which the site should be added.
    lower: A sequence of lower x,y,z bounds.
    upper: A sequence of upper x,y,z bounds.
    visible: Whether the site should be visible by default.
    **kwargs: Keyword arguments used to set other attributes of the newly
      created site.

  Returns:
    An `mjcf.Element` representing the newly created site.
Adds a site for visualizing a bounding box to an MJCF model.
Adds a site for visualizing a bounding box to an MJCF model .
def add_bbox_site(body, lower, upper, visible=False, **kwargs):
  """Adds a site for visualizing a bounding box to an MJCF model.

  Args:
    body: An `mjcf.Element`, the (world)body to which the site should be added.
    lower: A sequence of lower x,y,z bounds.
    upper: A sequence of upper x,y,z bounds.
    visible: Whether the site should be visible by default.
    **kwargs: Keyword arguments used to set other attributes of the newly
      created site.

  Returns:
    An `mjcf.Element` representing the newly created site.
  """
  upper = np.array(upper)
  lower = np.array(lower)
  pos = (upper + lower) / 2.
  size = np.maximum((upper - lower) / 2., _MIN_SITE_DIMENSION)
  group = None if visible else constants.TASK_SITE_GROUP
  return body.add(
      'site', type='box', pos=pos, size=size, group=group, **kwargs)
def add_bbox_site ( body , lower , upper , visible = False , * * kwargs ) : upper = np . array ( upper ) lower = np . array ( lower ) pos = ( upper + lower ) / 2. size = np . maximum ( ( upper - lower ) / 2. , _MIN_SITE_DIMENSION ) group = None if visible else constants . TASK_SITE_GROUP return body . add ( 'site' , type = 'box' , pos = pos , size = size , group = group , * * kwargs )