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

[ergoCubSN000] added missing joints param #503

Merged
merged 1 commit into from
May 6, 2023
Merged

[ergoCubSN000] added missing joints param #503

merged 1 commit into from
May 6, 2023

Conversation

pattacini
Copy link
Member

@pattacini pattacini commented May 5, 2023

This PR fixes #502 adding missing joints param.

The CI didn't catch it as it was running based on pull_request_target event (to fetch an env var). Previously fixed it via f819481.

@pattacini pattacini requested a review from traversaro May 5, 2023 17:57
@pattacini pattacini self-assigned this May 5, 2023
@pattacini pattacini merged commit 1bf8f14 into devel May 6, 2023
@pattacini pattacini deleted the fix/502 branch May 6, 2023 06:35
@traversaro
Copy link
Member

What was the error? If jointAxes is passed, in theory controlboardremapper does not need any joints parameter, see:

@pattacini
Copy link
Member Author

pattacini commented May 8, 2023

The error is exactly the missing joints param.

The XSD schema used to run the verification at the moment is not general enough to catch this peculiarity and it's also difficult to enhance it as we don't use XML as it ought to be used, unfortunately.

I saw that joints was already used in conjunction with jointAxes, although not required as you said. See for example:

<param name="axesNames">(l_shoulder_pitch,l_shoulder_roll,l_shoulder_yaw,l_elbow,l_wrist_yaw,l_wrist_roll,l_wrist_pitch,l_thumb_add,l_thumb_oc,l_index_add,l_index_oc,l_middle_oc,l_ring_pinky_oc)</param>
<param name="joints"> 13 </param>

As of now, I need it to make the XML validation run flawlessly, even if it's not required.

@pattacini
Copy link
Member Author

cc @Nicogene

@traversaro
Copy link
Member

The error is exactly the missing joints param.

The XSD schema used to run the verification at the moment is not general enough to catch this peculiarity and it's also difficult to enhance it as we don't use XML as it ought to be used, unfortunately.

I saw that joints was already used in conjunction with jointAxes, although not required as you said. See for example:

<param name="axesNames">(l_shoulder_pitch,l_shoulder_roll,l_shoulder_yaw,l_elbow,l_wrist_yaw,l_wrist_roll,l_wrist_pitch,l_thumb_add,l_thumb_oc,l_index_add,l_index_oc,l_middle_oc,l_ring_pinky_oc)</param>
<param name="joints"> 13 </param>

As of now, I need it to make the XML validation run flawlessly, even if it's not required.

Ah, ok, so the source of the check is

<xs:attribute name="name" type="xs:string" use="required" fixed="joints" />
, I see.

@traversaro
Copy link
Member

A nitpick (that should not be a big problem as the value is actually ignored), probably it should be 45 as the original one (before removing the joint) was 46 (see https://github.com/robotology/robots-configuration/pull/502/files#diff-6dfa09278879a57fda38fbadef41b069ec9b0f5d0b9d111290eba6e1d2492813L13 )?

@pattacini
Copy link
Member Author

Counting them manually, it came out 44.

@traversaro
Copy link
Member

Counting them manually, it came out 44.

Indeed, it seems that was wrong before, as the number of joints were 4+13+13+3+6+6 = 45 .

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