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

fix: referring directory error #38

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ def __init__(self):

self.vehicle_name = "anymal_c"

# Get the path to the "" directory
stridesim_dir = os.path.abspath(__file__)
for _ in range(5):
stridesim_dir = os.path.dirname(stridesim_dir)
mqjinwon marked this conversation as resolved.
Show resolved Hide resolved

# Stage prefix of the vehicle when spawning in the world
self.stage_prefix = "/World/AnymalC"

# The USD file that describes the visual aspect of the vehicle
self.usd_file = ROBOTS["Anymal C"]

# read config file
with open(os.getcwd() + "/exts/stride.simulator/config/anymalc_cfg.yaml", "r", encoding="utf-8") as file:
with open(stridesim_dir + "/config/anymalc_cfg.yaml", "r", encoding="utf-8") as file:
self.config = yaml.safe_load(file)

# The default sensors for a Anymal C
Expand Down
Loading