Skip to content

Commit f34250b

Browse files
committed
Remove cross_product_matrix function from pose.cpp
1 parent 3bb8029 commit f34250b

File tree

2 files changed

+4
-32
lines changed

2 files changed

+4
-32
lines changed

python/examples/find_ipctk.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
try:
2-
import ipctk # Try to import the built module
3-
except ImportError:
4-
import sys
5-
import pathlib
6-
repo_root = pathlib.Path(__file__).parents[2]
7-
possible_paths = [
8-
pathlib.Path("python").resolve(),
9-
repo_root / "build" / "python",
10-
repo_root / "build" / "release" / "python",
11-
repo_root / "build" / "debug" / "python",
12-
]
13-
for path in possible_paths:
14-
if path.exists() and len(list(path.glob("ipctk.*"))) > 0:
15-
sys.path.append(str(path))
16-
break
17-
else:
18-
raise ImportError("Could not find the ipctk module")
19-
print(f"Using found ipctk module at {path}")
20-
import ipctk # Try again
1+
import sys
2+
import pathlib
3+
sys.path.append(str(pathlib.Path(__file__).parents[1]))
4+
from _find_ipctk import ipctk # noqa

src/ipc/dynamics/rigid/pose.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44

55
namespace ipc::rigid {
66

7-
namespace {
8-
inline Eigen::Matrix3d
9-
cross_product_matrix(Eigen::ConstRef<Eigen::Vector3d> x)
10-
{
11-
Eigen::Matrix3d X;
12-
X << 0, -x.z(), x.y(), //
13-
x.z(), 0, -x.x(), //
14-
-x.y(), x.x(), 0;
15-
return X;
16-
}
17-
} // namespace
18-
197
Eigen::Matrix3d
208
rotation_vector_to_matrix(Eigen::ConstRef<Eigen::Vector3d> theta)
219
{

0 commit comments

Comments
 (0)