leidawt

Results 2 issues of leidawt

p1 = tfd.Uniform(name='p', low=0., high=1.).sample() p2 = 1 - p1 p = tf.stack([p1, p2]) assignment = tfd.Categorical(name="assignment", probs=p) assignment_ = evaluate(assignment.sample(sample_shape=data_.shape[0], seed=42))[:10] print("prior assignment, with p = %.2f:" % evaluate(p1))...

For some xv_11_lidar, they need to send "startlds$" first to start scaning, so we can add it into the xv11_laser.cpp as follows: after line 40, add: boost::asio::write(serial_, boost::asio::buffer("startlds$",10));