|
10 | 10 |
|
11 | 11 | #define ACQUISTION_TIME 10 ///< Max time controller will wait to acquire intitial joint states (seconds) |
12 | 12 |
|
13 | | -/*******************************************************************************************************************//** |
14 | | - * Main loop. Sets up ros environment including the node handle, rosconsole messaging, loop rate etc. Also creates and |
15 | | - * initialises the 'StateController', calls the state controller loop and publishers, and sends messages for the user |
16 | | - * interface. |
17 | | -***********************************************************************************************************************/ |
| 13 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 14 | +/// Main loop. Sets up ros environment including the node handle, rosconsole messaging, loop rate etc. Also creates and |
| 15 | +/// initialises the 'StateController', calls the state controller loop and publishers, and sends messages for the user |
| 16 | +/// interface. |
| 17 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
18 | 18 | int main(int argc, char* argv[]) |
19 | 19 | { |
20 | 20 | ros::init(argc, argv, "shc"); |
@@ -55,11 +55,11 @@ int main(int argc, char* argv[]) |
55 | 55 | ros::Rate r(roundToInt(1.0 / params.time_delta.data)); |
56 | 56 |
|
57 | 57 | // Wait specified time to aquire all published joint positions via callback |
58 | | - int spin = ACQUISTION_TIME / params.time_delta.data; //Spin cycles from time |
| 58 | + int spin = ACQUISTION_TIME / params.time_delta.data; // Spin cycles from time |
59 | 59 | while (spin--) |
60 | 60 | { |
61 | 61 | ROS_INFO_THROTTLE(THROTTLE_PERIOD, "\nAcquiring robot state . . .\n"); |
62 | | - // End wait if joints are intitialised or debugging in rviz (joint states will never initialise). |
| 62 | + // End wait if joints are intitialised or debugging in rviz (joint states will never initialise) |
63 | 63 | if (state.jointPositionsInitialised()) |
64 | 64 | { |
65 | 65 | spin = 0; |
@@ -134,5 +134,4 @@ int main(int argc, char* argv[]) |
134 | 134 | return 0; |
135 | 135 | } |
136 | 136 |
|
137 | | -/*********************************************************************************************************************** |
138 | | -***********************************************************************************************************************/ |
| 137 | +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
0 commit comments