-
Notifications
You must be signed in to change notification settings - Fork 109
Fixes required to follow tutorial #385
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| configuration item; description | ||
| node_id; The node-ID (default: 255) | ||
| node_id; The node-ID (e.g. 255) |
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.
Not specifying it in bus.yml gives an error.
| options: | ||
| dcf_path: install/{package_name}/share/{package_name}/config/{bus_config_name} | ||
| dcf_path: "@BUS_CONFIG_PATH@" |
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 is recommended I believe
| .. code-block:: yaml | ||
| nodes: | ||
| - [unique slave 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.
This should not be a list but a map.
|
|
||
| .. code-block:: console | ||
| mkdir launch |
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 directory was already created above.
| mkdir launch | ||
| touch {...}.launch.py | ||
| touch launch/{...}.launch.py |
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.
Added launch/ to indicate we're suddenly operating in different directories.
| launch/ | ||
| DESTINATION share/${PROJECT_NAME}/launch/ | ||
| launch | ||
| DESTINATION share/${PROJECT_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.
This is simply a cleanup. All other tutorials use this syntax, result is the same but this allows for more folders.
| ) | ||
| install(DIRECTORY | ||
| launch_tests/ |
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 directory simply does not exist.
| ) | ||
| if(BUILD_TESTING) |
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.
I think this is just noise on the tutorial.
| int boot_attempts = 0; | ||
| const int max_boot_attempts = 3; // 1 retry allowed | ||
| RCLCPP_WARN(this->node_->get_logger(), "Wait for device to boot..."); | ||
| RCLCPP_INFO(this->node_->get_logger(), "Wait for device to boot..."); |
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 is normal and expected/configured behavior
| std::string master_bin_; | ||
| std::string can_interface_name_; | ||
| uint32_t timeout_; | ||
| uint32_t timeout_ = 2000; |
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.
Single source of truth. The logging and the actual default were already out of date.
| find_package(canopen_core REQUIRED) | ||
| find_package(canopen_interfaces REQUIRED) | ||
| find_package(canopen_base_driver REQUIRED) | ||
| find_package(canopen_proxy_driver REQUIRED) |
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 are unused
After following this tutorial: https://ros-industrial.github.io/ros2_canopen/manual/rolling/user-guide/how-to-create-a-configuration.html
I had some errors, so I tried to fix the documentation.