-
Notifications
You must be signed in to change notification settings - Fork 506
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
Rename ServoServer to ServoNode #649
Conversation
73bc8eb
to
b7064a8
Compare
905cc96
to
1a40885
Compare
1a40885
to
e95b7b5
Compare
Codecov Report
@@ Coverage Diff @@
## main #649 +/- ##
=======================================
Coverage 54.18% 54.18%
=======================================
Files 192 192
Lines 20187 20187
=======================================
Hits 10936 10936
Misses 9251 9251
Continue to review full report at Codecov.
|
@@ -49,8 +49,8 @@ | |||
|
|||
// We'll just set up parameters here | |||
const std::string JOY_TOPIC = "/joy"; | |||
const std::string TWIST_TOPIC = "/servo_server/delta_twist_cmds"; | |||
const std::string JOINT_TOPIC = "/servo_server/delta_joint_cmds"; | |||
const std::string TWIST_TOPIC = "/servo_component/delta_twist_cmds"; |
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.
Should we just use the /servo/*
namespace?
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.
agree that probably makes sense or /moveit_servo ?
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.
👍 to /servo/*
@@ -45,10 +45,10 @@ | |||
|
|||
namespace moveit_servo | |||
{ | |||
class ServoServer : public rclcpp::Node | |||
class ServoComponent : public rclcpp::Node |
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.
What are the implications of calling this class Component? Isn't it a node? So ServoNode
makes most sense to me, which in turn can be a component node (exported, no class/file needed) or a node executable ServoNodeExecutable
.
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.
Changes here should be reviewed along with #621 (Add standalone executable for Servo server node). In fact, maybe this PR should be closed and we just make all of the naming changes as a separate commit in that PR.
I think ServoNodeComponent
(class name) and servo_component_node.cpp
make good sense for this class / file.
The executable that Joe added in #621 could be called ServoMain
or ServoStandaloneNode
. It just instantiates this class in main.
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.
+1 to ServoNode
. In my mind we create a node and then allow launching it in a component container.
I renamed servo_component to servo_node and servo_server_node to servo_node_main. |
411cc95
to
7e643e4
Compare
@AndyZe I believe this is ready for review. I included a deprecated header so existing code should continue to build and produce a warning. There is no way for me to deprecate the change in the name for the binaries (the component node plugin) so launch files that depend on the old ServoServer node name will stop working after this. |
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 bit of text still needs to be replaced. Approved assuming that happens.
moveit_ros/moveit_servo/launch/servo_example.launch.py: # name="servo_server",
moveit_ros/moveit_servo/launch/servo_example.launch.py: executable="servo_server_node",
9de7fdc
to
3bf38cb
Compare
It looks like this PR along with some of the other recent changes (e.g. launch file shuffling) have broken the Servo tutorial. I'd like to put the brakes on more large Servo changes until the tutorial gets fixed. |
The tutorial on the website or the tutorial in the main branch of the tutorial repo? The website has changed to track a new foxy branch. That website is based on a foxy install of moveit. |
main branch, built from source |
The internet is that eventually, we'll have different versions of the tutorials for each version of ros/moveit but for now we want the tutorial website to be as beginner-friendly and as stable as possible. Long term we will have multiple branches of the tutorial website deploy to different versions of the website, but until then we changed the website to only deploy from the For the main branch (of the tutorials and moveit), to use that you'll need to build it locally (including the website) to even access it and we do need a process for making sure it is working before putting it on the web which we will do at some point before Humble. |
This tutorial: http://moveit2_tutorials.picknik.ai/doc/realtime_servo/realtime_servo_tutorial.html Does not work with source installs of moveit unless you are building the foxy version of moveit. Eventually, it'll be moved to a URL that looks like this: moveit2_tutorials.foxy.picknik.ai and the main branch will be deployed to: moveit2_tutorials.rolling.picknik.ai |
We do need to include a migration guide from foxy eventually also for all the major changes to things like servo from foxy. |
Yep, the plan for the tutorials makes sense. We should try to keep the |
I can make the PR to update the rolling tutorials. We do need to create a migration guide to include with the Humble release of tutorials to make it easy for people to migrate from Foxy to Humble. |
Description
Until we figure out how we want to change the API to prevent this sort of bug this makes servo error much nicer in the constructor of ServoCalcs.
This also includes a fix for a clang-tidy error I hadn't seen before. I wonder if our clang-tidy changed since the last time someone made a code change to servo.
Updated tutorials: moveit/moveit2_tutorials#109
Checklist