-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Setting the root directions of a forest causes both the root locations and root directions to not be respected. Not setting the root direction causes the location to be respected, so I think the root direction is causing some issue. This happens both in convex and nonconvex domains.
Reproduction
root1 = np.asarray(ROOT_LOCATION, dtype=float).reshape(3,) * L
root2 = -root1
use_dir = args.use_root_dir.lower() == "true"
if use_dir and ROOT_DIR is not None:
dir1 = np.asarray(ROOT_DIR, dtype=float).reshape(3,)
dir2 = -dir1
else:
dir1 = None
dir2 = None
forest = Forest(n_networks=1, n_trees_per_network=[2], physical_clearance=float(args.forest_clearance))
forest.set_domain(domain)
forest.set_roots(start_points=[[root1, root2]], directions=[[dir1, dir2]])
Expected behavior
Expect roots to be at root locations pointing in root directions. However, when root directions are specified, neither the location nor the direction are proper.
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct and Contributing Guidelines
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working