This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| from torch import nn | |
| class Net(nn.Module): | |
| def __init__(self): | |
| super().__init__() | |
| self.l1 = nn.Sequential(nn.Linear(8, 64), nn.ReLU(), nn.Linear(64, 2)) | |
| self.l2 = nn.Sequential(nn.Linear(64, 64), nn.ReLU(), nn.Linear(64, 2)) | |
| self.relu = nn.ReLU() | |
| def forward(self, x, y): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from sensor_msgs.msg import PointCloud2, PointField | |
| import numpy as np | |
| import struct | |
| fmt_full = '' | |
| _DATATYPES = {} | |
| _DATATYPES[PointField.INT8] = ('b', 1) | |
| _DATATYPES[PointField.UINT8] = ('B', 1) |