Skip to content

Commit 3fe4f49

Browse files
committed
CHG: function camelcase to snakecase
1 parent a7ae7d2 commit 3fe4f49

File tree

7 files changed

+122
-117
lines changed

7 files changed

+122
-117
lines changed

robotiq_hande_driver/include/application.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ApplicationLayer{
4040
* @return none
4141
* @note see status on success, exception thrown if communicatoin issues
4242
*/
43-
void Stop();
43+
void stop();
4444

4545
/**
4646
* @brief Resets the gripper: deactivate and activate again
@@ -49,7 +49,7 @@ class ApplicationLayer{
4949
* @return none
5050
* @note see status on success, exception thrown if communicatoin issues
5151
*/
52-
void Reset();
52+
void reset();
5353

5454
/**
5555
* Emergency auto-release, gripper fingers are slowly opened, reactivation necessary
@@ -58,7 +58,7 @@ class ApplicationLayer{
5858
* @return none
5959
* @note see status on success, exception thrown if communicatoin issues
6060
*/
61-
void AutoRelease();
61+
void auto_release();
6262

6363
/**
6464
* @brief Activates the gripper, after that it can be used
@@ -67,7 +67,7 @@ class ApplicationLayer{
6767
* @return none
6868
* @note see status on success, exception thrown if communicatoin issues
6969
*/
70-
void Activate();
70+
void activate();
7171

7272
/**
7373
* @brief Opens the gripper
@@ -76,7 +76,7 @@ class ApplicationLayer{
7676
* @return none
7777
* @note see status on success, exception thrown if communicatoin issues
7878
*/
79-
void Open();
79+
void open();
8080

8181
/**
8282
* @brief Closes the gripper
@@ -85,7 +85,7 @@ class ApplicationLayer{
8585
* @return none
8686
* @note see status on success, exception thrown if communicatoin issues
8787
*/
88-
void Close();
88+
void close();
8989

9090
/**
9191
* @brief Returns the gripper status
@@ -94,7 +94,7 @@ class ApplicationLayer{
9494
* @return Gripper status
9595
* @note see status on success, exception thrown if communicatoin issues
9696
*/
97-
Status GetStatus();
97+
Status get_status();
9898

9999
/**
100100
* @brief Returns the gripper fault status
@@ -103,7 +103,7 @@ class ApplicationLayer{
103103
* @return Fault Status
104104
* @note see status on success, exception thrown if communicatoin issues
105105
*/
106-
FaultStatus GetFaultStatus();
106+
FaultStatus get_fault_status();
107107

108108
/**
109109
* @brief Returns the gripper requested position
@@ -112,7 +112,7 @@ class ApplicationLayer{
112112
* @return Gripper requested position
113113
* @note see status on success, exception thrown if communicatoin issues
114114
*/
115-
double RequestedPosition();
115+
double requested_position();
116116

117117
/**
118118
* @brief Returns the gripper position
@@ -121,7 +121,7 @@ class ApplicationLayer{
121121
* @return Gripper position in [m]
122122
* @note see status on success, exception thrown if communicatoin issues
123123
*/
124-
double Position();
124+
double position();
125125

126126
/**
127127
* @brief Moves the gripper to requested position
@@ -130,7 +130,7 @@ class ApplicationLayer{
130130
* @return none
131131
* @note see status on success, exception thrown if communicatoin issues
132132
*/
133-
void SetPosition(double position);
133+
void set_position(double position);
134134

135135
/**
136136
* @brief Returns the gripper current
@@ -139,12 +139,12 @@ class ApplicationLayer{
139139
* @return Gripper current in [A] (range: 0-2.55A)
140140
* @note see status on success, exception thrown if communicatoin issues
141141
*/
142-
double Current();
142+
double current();
143143

144144

145-
void Read();
145+
void read();
146146

147-
void Write();
147+
void write();
148148

149149
private:
150150
/**

robotiq_hande_driver/include/communication.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Communication{
2727
* @return none
2828
* @note see status on success, exception thrown in case of communication issues
2929
*/
30-
void Connect();
30+
void connect();
3131

3232
/**
3333
* @brief Disconnect from gripper using modbus rtu and virtual socket
@@ -36,7 +36,7 @@ class Communication{
3636
* @return none
3737
* @note see status on success, exception thrown in case of communication issues
3838
*/
39-
void Disconnect();
39+
void disconnect();
4040

4141
/**
4242
* @brief Read and write input.output registers at once
@@ -45,7 +45,7 @@ class Communication{
4545
* @return none
4646
* @note see status on success, exception thrown in case of communication issues
4747
*/
48-
void ReadWiteRegisters();
48+
void read_write_registers();
4949

5050
uint16_t input_registers_[kRegisterWordLength];
5151
uint16_t output_registers_[kRegisterWordLength];

robotiq_hande_driver/include/protocol_logic.hpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ProtocolLogic{
106106
* @return none
107107
* @note see status on success, exception thrown if communicatoin issues
108108
*/
109-
void Reset();
109+
void reset();
110110

111111
/**
112112
* @brief Sets the gripper
@@ -115,7 +115,7 @@ class ProtocolLogic{
115115
* @return none
116116
* @note see status on success, exception thrown if communicatoin issues
117117
*/
118-
void Set();
118+
void set();
119119

120120
/**
121121
* @brief Emergency auto-release, gripper fingers are slowly opened, reactivation necessary
@@ -124,7 +124,7 @@ class ProtocolLogic{
124124
* @return none
125125
* @note see status on success, exception thrown if communicatoin issues
126126
*/
127-
void AutoRelease();
127+
void auto_release();
128128

129129
/**
130130
* @brief Activates the gripper, after that it can be used
@@ -133,7 +133,7 @@ class ProtocolLogic{
133133
* @return none
134134
* @note see status on success, exception thrown if communicatoin issues
135135
*/
136-
void Activate();
136+
void activate();
137137

138138
/**
139139
* @brief Moves the gripper
@@ -144,92 +144,92 @@ class ProtocolLogic{
144144
* @return none
145145
* @note see status on success, exception thrown if communicatoin issues
146146
*/
147-
void GoTo(uint8_t position, uint8_t velocity, uint8_t force);
147+
void go_to(uint8_t position, uint8_t velocity, uint8_t force);
148148

149149
/**
150150
* @brief Stops the gripper
151151
*
152152
* @return none
153153
* @note see status on success, exception thrown if communicatoin issues
154154
*/
155-
void Stop();
155+
void stop();
156156

157157
/**
158158
* @brief Logic for reset state
159159
*
160160
* @return True if gripper is in reset state
161161
*/
162-
bool IsReset();
162+
bool is_reset();
163163

164164
/**
165165
* @brief Logic for ready state
166166
*
167167
* @return True if gripper is ready
168168
*/
169-
bool IsReady();
169+
bool is_ready();
170170

171171
/**
172172
* @brief Logic for moving state
173173
*
174174
* @return True if gripper is moving
175175
*/
176-
bool IsMoving();
176+
bool is_moving();
177177

178178
/**
179179
* @brief Logic for stopped state
180180
*
181181
* @return True if gripper is stopped
182182
*/
183-
bool IsStopped();
183+
bool is_stopped();
184184

185185
/**
186186
* @brief Logic for closed state
187187
*
188188
* @return True if gripper is closed
189189
*/
190-
bool IsClosed();
190+
bool is_closed();
191191

192192
/**
193193
* @brief Logic for opened state
194194
*
195195
* @return True if gripper is opened
196196
*/
197-
bool IsOpened();
197+
bool is_opened();
198198

199199
/**
200200
* @brief Logic for detecting the object
201201
*
202202
* @return True if gripper has detected the object
203203
*/
204-
bool ObjDetected();
204+
bool obj_detected();
205205

206206
/**
207207
* @brief Getter of requested gripper position
208208
*
209209
* @return Requested gripper position
210210
*/
211-
uint8_t GetRegPos();
211+
uint8_t get_reg_pos();
212212

213213
/**
214214
* @brief Getter of current gripper position
215215
*
216216
* @return Current gripper position
217217
*/
218-
uint8_t GetPos();
218+
uint8_t get_pos();
219219

220220
/**
221221
* @brief Getter of current
222222
*
223223
* @return Current gripper
224224
*/
225-
uint8_t GetCurrent();
225+
uint8_t get_current();
226226

227227
/**
228228
* @brief Decode modbus registers and refresh appropriate data
229229
*
230230
* @return none
231231
*/
232-
void RefreshRegisters();
232+
void refresh_registers();
233233

234234
/**
235235
* @brief Read 8bit registers from 16bit words
@@ -238,7 +238,7 @@ class ProtocolLogic{
238238
* @param byte 8bit register position in 16bit modbus frame
239239
* @return none
240240
*/
241-
void ReadRegister(uint8_t &reg, uint8_t byte);
241+
void read_register(uint8_t &reg, uint8_t byte);
242242

243243
/**
244244
* @brief Set n-th bit to x value
@@ -248,7 +248,7 @@ class ProtocolLogic{
248248
* @param x bool value
249249
* @return uint number with n-th bit set to x
250250
*/
251-
uint BitSetTo(uint number, uint n, bool x);
251+
uint bit_set_to(uint number, uint n, bool x);
252252

253253
private:
254254
// Gripper

0 commit comments

Comments
 (0)