Skip to content

Commit

Permalink
variable in and out buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
byq77 committed May 7, 2019
1 parent e6f59dc commit 2777d7a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
10 changes: 10 additions & 0 deletions mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
"help": "Default library Serial baudrate.",
"macro_name": "ROSSERIAL_BAUDRATE",
"value": "115200"
},
"in_buffer_size": {
"help": "Input buffer size.",
"macro_name": "ROSSERIAL_INPUT_BUFFER_SIZE",
"value": 512
},
"out_buffer_size": {
"help": "Output buffer size.",
"macro_name": "ROSSERIAL_OUTPUT_BUFFER_SIZE",
"value": 512
}
}
}
4 changes: 2 additions & 2 deletions ros/node_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ using rosserial_msgs::TopicInfo;
template<class Hardware,
int MAX_SUBSCRIBERS = 25,
int MAX_PUBLISHERS = 25,
int INPUT_SIZE = 512,
int OUTPUT_SIZE = 512>
int INPUT_SIZE = ROSSERIAL_INPUT_BUFFER_SIZE, // default 512
int OUTPUT_SIZE = ROSSERIAL_OUTPUT_BUFFER_SIZE> // default 512
class NodeHandle_ : public NodeHandleBase_
{
protected:
Expand Down

0 comments on commit 2777d7a

Please sign in to comment.