i am working on a neural network project via ROS, i want to know how to process lidar data directly to neural network via tensorflow and keras on python
How can i subscribe the lidar data in ROS and works it with keras or tensorflow directly?
i just know how to use the data for neural network when its converted into .csv (using rosbag_to_csv).
dataset = loadtxt('lidar.csv', delimiter=',')
X = dataset[:,0:360]
y = dataset[:,1]
model = Sequential()
model.add(Dense(12, input_dim=8, activation='relu'))
model.add(Dense(8, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
where i can put the topic address /scan
in my python code?
i am using
- kinetic
- ubuntu 16.04
- python 2.7