Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendr committed Sep 11, 2018
1 parent 208a171 commit e510516
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,10 @@ module ExtraMessages
header::Header
imu::sensor_msgs.Imu
end
# Readable already handles the parsing for you.
# You could also write your own parser:
# read(io::IO, ::Type{NewMsgType})
# Have a look at the read_field() methods.
end
end
```
The parser will call `read(io, NewMsgType)` to deserialize the new type. `Readable` already provides a generic implementation of `read` that should be adequate in most cases. But you could also write your own `read(io::IO, ::Type{NewMsgType})`. Have a look at the `read_field()` methods [here](https://github.com/damiendr/RobotOSData.jl/blob/master/src/messages.jl).
### Auto-generating message types
Expand Down

0 comments on commit e510516

Please sign in to comment.