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

Update according to changes to Python-ROS 2 API #82

Open
wants to merge 2 commits into
base: humble
Choose a base branch
from

Conversation

asaj
Copy link

@asaj asaj commented Nov 10, 2024

Additional followup to #67 and #68

Also some minor fixes including

  • Use rclpy.duration.Duration in place of builtin_interfaces.msg.Duration as the latter does not support addition with Time
  • Strip comments out of robot_description URDF, which cause parsing errors when passed as a param

Fixes #81

Copy link
Member

@lukeschmitt-tr lukeschmitt-tr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for your contribution! Just a few very minor comments here.

@@ -70,9 +68,9 @@ def __init__(
topic_dxl_joint_states: str = 'dynamixel/joint_states',
topic_base_joint_states: str = 'mobile_base/joint_states',
use_nav: bool = False,
logging_level: LoggingSeverity = LoggingSeverity.INFO,
logging_level: LoggingSeverity = LoggingSeverity.DEBUG,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change.

Suggested change
logging_level: LoggingSeverity = LoggingSeverity.DEBUG,
logging_level: LoggingSeverity = LoggingSeverity.INFO,


group_info: RobotInfo.Response = self.future_group_info.result()
self.pan_name = group_info.joint_names[0]
self.tilt_name = group_info.joint_names[1]
pan_limits = [group_info.joint_lower_limits[0], group_info.joint_upper_limits[0]]
tilt_limits = [group_info.joint_lower_limits[1], group_info.joint_upper_limits[1]]
pan_limits = [group_info.joint_lower_limits[0],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert all changes like this one that do not affect how the program works. Indentation fixes are okay to keep in.

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.

[Bug]: parser error Couldn't parse parameter override rule: '--param robot_description
2 participants