Skip to content

Commit 45c5851

Browse files
Jayasinghe, Oshada (Data61, Pullenvale)Jayasinghe, Oshada (Data61, Pullenvale)
authored andcommitted
Updated comments in main source
1 parent 2186f1e commit 45c5851

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/main.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
#define ACQUISTION_TIME 10 ///< Max time controller will wait to acquire intitial joint states (seconds)
1212

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+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1818
int main(int argc, char* argv[])
1919
{
2020
ros::init(argc, argv, "shc");
@@ -55,11 +55,11 @@ int main(int argc, char* argv[])
5555
ros::Rate r(roundToInt(1.0 / params.time_delta.data));
5656

5757
// 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
5959
while (spin--)
6060
{
6161
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)
6363
if (state.jointPositionsInitialised())
6464
{
6565
spin = 0;
@@ -134,5 +134,4 @@ int main(int argc, char* argv[])
134134
return 0;
135135
}
136136

137-
/***********************************************************************************************************************
138-
***********************************************************************************************************************/
137+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)