Skip to content

finished the navigation challenge#11

Open
vijeeth19 wants to merge 3 commits intoUBC-Snowbots:masterfrom
vijeeth19:master
Open

finished the navigation challenge#11
vijeeth19 wants to merge 3 commits intoUBC-Snowbots:masterfrom
vijeeth19:master

Conversation

@vijeeth19
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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