Drake
driving_command_translator.h
Go to the documentation of this file.
1 #pragma once
2 
3 // GENERATED FILE DO NOT EDIT
4 // See drake/tools/lcm_vector_gen.py.
5 
6 #include <memory>
7 #include <vector>
8 
10 #include "drake/lcmt_driving_command_t.hpp"
12 
13 namespace drake {
14 namespace automotive {
15 
22  public:
25  std::unique_ptr<systems::BasicVector<double>> AllocateOutputVector()
26  const override;
27  void Deserialize(const void* lcm_message_bytes, int lcm_message_length,
28  systems::VectorBase<double>* vector_base) const override;
29  void Serialize(double time, const systems::VectorBase<double>& vector_base,
30  std::vector<uint8_t>* lcm_message_bytes) const override;
31 };
32 
33 } // namespace automotive
34 } // namespace drake
Translates between LCM message objects and VectorBase objects for the DrivingCommand type...
Definition: driving_command_translator.h:20
LcmAndVectorBaseTranslator(const LcmAndVectorBaseTranslator &)=delete
Definition: automotive_demo.cc:88
void Serialize(double time, const systems::VectorBase< double > &vector_base, std::vector< uint8_t > *lcm_message_bytes) const override
Translates a drake::systems::VectorBase object into LCM message bytes.
Definition: driving_command_translator.cc:18
Describes the row indices of a DrivingCommand.
Definition: driving_command.h:20
const double time
Definition: robot_plan_interpolator_test.cc:63
std::unique_ptr< systems::BasicVector< double > > AllocateOutputVector() const override
Allocates the vector storage for an output port of our LCM message type, in case special storage is n...
Definition: driving_command_translator.cc:14
Defines an abstract parent class of all translators that convert between LCM message bytes and drake:...
Definition: lcm_and_vector_base_translator.h:18
void Deserialize(const void *lcm_message_bytes, int lcm_message_length, systems::VectorBase< double > *vector_base) const override
Translates LCM message bytes into a drake::systems::VectorBase object.
Definition: driving_command_translator.cc:33
DrivingCommandTranslator()
Definition: driving_command_translator.h:23