Skip to content

Commit

Permalink
fixed formatting errors for linters
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosiglezb committed Sep 4, 2024
1 parent 89429a6 commit f997b34
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
hooks:
- id: ruff
# ignore import-star and import-star-usage
args: [--fix, --ignore, F403, --ignore, F405]
args: [--fix, --ignore, F403, --ignore, F405, --ignore, E402]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand Down
15 changes: 7 additions & 8 deletions UI/foxglove/UI_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ async def main():
icp_des_chan_id = await SceneChannel(
True, "icp_des", "json", "icp_des", ["x", "y"]
).add_chan(server)
proj_footstepS_chan_id = await SceneChannel(
False,
"proj_footstep_viz",
"protobuf",
SceneUpdate.DESCRIPTOR.full_name,
scene_schema,
).add_chan(server)
# proj_footstepS_chan_id = await SceneChannel(
# False,
# "proj_footstep_viz",
# "protobuf",
# SceneUpdate.DESCRIPTOR.full_name,
# scene_schema,
# ).add_chan(server)
b_ft_contact_chan_id = await SceneChannel(
True, "b_ft_contact", "json", "b_ft_contact", ["b_lfoot", "b_rfoot"]
).add_chan(server)
Expand Down Expand Up @@ -279,7 +279,6 @@ async def main():
transform = FrameTransform()

print("foxglove websocket initiated")
r_foot, l_foot = [0, 0, 0], [0, 0, 0]

# Clear experiment_data to start new footstep planning
fp.remove_yaml_files(fp.WATCHED_DIR)
Expand Down
2 changes: 1 addition & 1 deletion mujoco/include/mujoco/mjdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ struct mjData_ {
*efc_aref; // reference pseudo-acceleration (nefc x 1)

//-------------------- arena-allocated: POSITION, VELOCITY,
//CONTROL/ACCELERATION dependent
// CONTROL/ACCELERATION dependent

// computed by mj_fwdConstraint/mj_inverse
mjtNum *efc_b; // linear cost term: J*qacc_smooth - aref (nefc x 1)
Expand Down
9 changes: 5 additions & 4 deletions scripts/real_teleop.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from util.python_utils.device.t265 import T265
import util.python_utils.util as util
import matplotlib.pyplot as plt

import time
import cv2
Expand Down Expand Up @@ -71,7 +72,7 @@ def _on_press(self, key):
if key_char == "e":
self._t_last_click = -1
self._t_click = time.time()
elapsed_time = self._t_click - self._t_last_click
# elapsed_time = self._t_click - self._t_last_click
self._t_last_click = self._t_click
self.single_click_and_hold = True
elif key_char == "s":
Expand Down Expand Up @@ -298,12 +299,12 @@ def visualize(data_path):
data["right_img"] = []
left_img = np.zeros((800, 848, 3), dtype="uint8")
right_img = np.zeros((800, 848, 3), dtype="uint8")
for time in data["time"]:
for tm in data["time"]:
left_img_read = cv2.imread(
os.path.join(left_img_dir, "{}.png".format(int(time * 100)))
os.path.join(left_img_dir, "{}.png".format(int(tm * 100)))
)
right_img_read = cv2.imread(
os.path.join(right_img_dir, "{}.png".format(int(time * 100)))
os.path.join(right_img_dir, "{}.png".format(int(tm * 100)))
)
data["left_img"] += [left_img]
data["right_img"] += [right_img]
Expand Down

0 comments on commit f997b34

Please sign in to comment.