Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vijeeth19
Copy link

No description provided.

Copy link

@ihsan314 ihsan314 left a 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) {
Copy link

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.

Comment on lines +25 to +28
// 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);
Copy link

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.

Comment on lines +39 to +41
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);
Copy link

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">
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants