-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
finished the navigation challenge #11
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall pretty good, just a few minor issues regarding standard coding practices and extraneous code.
|
||
|
||
|
||
MyClass::MyClass(int argc, char **argv, std::string node_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more meaningful class name would have been nice.
// Obtains character from the parameter server (or launch file), sets '!' as default | ||
std::string parameter_name = "my_node/character"; | ||
std::string default_character = "!"; | ||
SB_getParam(nh, parameter_name, suffix, default_character); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code isn't used, so you can get rid of it.
void convertToPointCloud(float * ranges, sensor_msgs::PointCloud* cloud, int size, float angle_min, float angle_incr); | ||
float locateTheHole(sensor_msgs::PointCloud* cloud, geometry_msgs::Point32* output_points, int size, float angle_min, float angle_incr); | ||
void MoveTowardsHole(geometry_msgs::Twist* twist, float hole_angle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions should be kept private, per standard C++ practice.
@@ -0,0 +1,5 @@ | |||
<launch> | |||
<node name="my_node" pkg="obstacle_avoidance" type="my_node" output="screen"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node could have a more descriptive name.
No description provided.