diff --git a/dm_control/composer/observation/obs_buffer.py b/dm_control/composer/observation/obs_buffer.py index d656b9d7..af085745 100644 --- a/dm_control/composer/observation/obs_buffer.py +++ b/dm_control/composer/observation/obs_buffer.py @@ -115,7 +115,7 @@ def insert(self, timestamp, delay, value): This function implicitly updates the internal "clock" of this buffer to the timestamp of the new observation, and the internal buffer is trimmed accordingly, i.e. at most `buffer_size` items whose delayed arrival time - preceeds `timestamp` are kept. + precedes `timestamp` are kept. Args: timestamp: The time at which this observation was made. diff --git a/dm_control/entities/props/duplo/utils.py b/dm_control/entities/props/duplo/utils.py index 63ddc8f5..db8b7463 100644 --- a/dm_control/entities/props/duplo/utils.py +++ b/dm_control/entities/props/duplo/utils.py @@ -45,8 +45,8 @@ def measure_separation_force(top_brick, Args: top_brick: An instance of `Duplo` representing the top brick. bottom_brick: An instance of `Duplo` representing the bottom brick. - min_force: A force that should be insufficent to separate the bricks (N). - max_force: A force that should be sufficent to separate the bricks (N). + min_force: A force that should be insufficient to separate the bricks (N). + max_force: A force that should be sufficient to separate the bricks (N). tolerance: The desired precision of the solution (N). time_limit: The maximum simulation time (s) over which to apply force on each iteration. Increasing this value will result in smaller estimates diff --git a/dm_control/locomotion/soccer/pitch.py b/dm_control/locomotion/soccer/pitch.py index 66b20f3e..8a8ddf4c 100644 --- a/dm_control/locomotion/soccer/pitch.py +++ b/dm_control/locomotion/soccer/pitch.py @@ -173,7 +173,7 @@ def _post_radius(goalpost_name, goalpost_radius): if 'top' in goalpost_name: radius *= 1.01 # Prevent z-fighting at the corners. if 'support' in goalpost_name: - radius *= _SUPPORT_POST_RATIO # Suport posts are a bit narrower. + radius *= _SUPPORT_POST_RATIO # Support posts are a bit narrower. return radius diff --git a/dm_control/locomotion/tasks/reference_pose/rewards.py b/dm_control/locomotion/tasks/reference_pose/rewards.py index f2b34f1f..f38d0930 100644 --- a/dm_control/locomotion/tasks/reference_pose/rewards.py +++ b/dm_control/locomotion/tasks/reference_pose/rewards.py @@ -137,7 +137,7 @@ def comic_reward_fn(termination_error, termination_error_threshold, based on the termination error. walker_features: Current features of the walker reference_features: features of the current reference pose - unused_kwargs: unused addtional keyword arguments. + unused_kwargs: unused additional keyword arguments. Returns: RewardFnOutput tuple containing reward, debug terms and reward terms. diff --git a/dm_control/manipulation/bricks.py b/dm_control/manipulation/bricks.py index 92fbf4ca..6904add6 100644 --- a/dm_control/manipulation/bricks.py +++ b/dm_control/manipulation/bricks.py @@ -433,7 +433,7 @@ def _get_pairwise_stacking_rewards(physics, bricks, pairs, close_coef=0.1): bricks: A list of `composer.Entity` instances corresponding to bricks. pairs: A list of `(bottom_idx, top_idx)` tuples specifying which pairs of bricks should be measured. - close_coef: Float specfying the relative weight given to the coarse- + close_coef: Float specifying the relative weight given to the coarse- tolerance shaping component for getting the bricks close to one another (as opposed to the fine-tolerance component for clicking them together). diff --git a/dm_control/mjcf/parser.py b/dm_control/mjcf/parser.py index 681f0293..ffa52968 100644 --- a/dm_control/mjcf/parser.py +++ b/dm_control/mjcf/parser.py @@ -228,7 +228,7 @@ def _parse(xml_root, escape_separators=False, # Merge in the included XML files. for included_mjcf in to_include: # The included MJCF might have been automatically assigned a model name - # that conficts with that of `mjcf_root`, so we override it here. + # that conflicts with that of `mjcf_root`, so we override it here. included_mjcf.model = mjcf_root.model mjcf_root.include_copy(included_mjcf) diff --git a/dm_control/mujoco/wrapper/core.py b/dm_control/mujoco/wrapper/core.py index 95fa150a..4e760a27 100644 --- a/dm_control/mujoco/wrapper/core.py +++ b/dm_control/mujoco/wrapper/core.py @@ -504,7 +504,7 @@ def object_velocity(self, object_id, object_type, local_frame=False): object_id: Object identifier. Can be either integer ID or String name. object_type: The type of the object. Can be either a lowercase string (e.g. 'body', 'geom') or an `mjtObj` enum value. - local_frame: Boolean specifiying whether the velocity is given in the + local_frame: Boolean specifying whether the velocity is given in the global (worldbody), or local (object) frame. Returns: diff --git a/dm_control/suite/lqr.py b/dm_control/suite/lqr.py index 967af1d1..9bde0f82 100644 --- a/dm_control/suite/lqr.py +++ b/dm_control/suite/lqr.py @@ -157,7 +157,7 @@ def _make_model(n_bodies, An MJCF string describing the linear system. Raises: - ValueError: If the number of bodies or actuators is erronous. + ValueError: If the number of bodies or actuators is erroneous. """ if n_bodies < 1 or n_actuators < 1: raise ValueError('At least 1 body and 1 actuator required.')