Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_tiago_arm_module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
platforms
TIAGo
iri_tiago_arm_module
Commits
ebd458b7
Commit
ebd458b7
authored
4 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Added get_group_joints BT wrapper
parent
ed59cc26
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/tiago_arm_module/tiago_arm_bt_module.h
+18
-0
18 additions, 0 deletions
include/tiago_arm_module/tiago_arm_bt_module.h
src/tiago_arm_bt_module.cpp
+11
-0
11 additions, 0 deletions
src/tiago_arm_bt_module.cpp
src/xml/bt_test.xml
+3
-0
3 additions, 0 deletions
src/xml/bt_test.xml
with
32 additions
and
0 deletions
include/tiago_arm_module/tiago_arm_bt_module.h
+
18
−
0
View file @
ebd458b7
...
...
@@ -285,6 +285,24 @@ class CTiagoArmModuleBT
*/
BT
::
NodeStatus
get_tiago_arm_group_name
(
BT
::
TreeNode
&
self
);
/**
* \brief Synchronized get_group_joints TIAGo arm function.
*
* This function calls get_group_joints of tiago_arm_module.
*
* It has the following output ports:
*
* joint_names (std::vector<std::string>): The group joints' names.
*
* \param self Self node with the required ports:
*
* \return a BT:NodeStatus indicating whether the request has been
* successfull (BT:NodeStatus::SUCCESS) or not (BT:NodeStatus::FAILURE).
* If inputs are missing or incorrect it also returns BT:NodeStatus::FAILURE.
*
*/
BT
::
NodeStatus
get_tiago_arm_group_joints
(
BT
::
TreeNode
&
self
);
/**
* \brief Synchronized set_max_planning_attempts TIAGo arm function.
*
...
...
This diff is collapsed.
Click to expand it.
src/tiago_arm_bt_module.cpp
+
11
−
0
View file @
ebd458b7
...
...
@@ -379,6 +379,17 @@ BT::NodeStatus CTiagoArmModuleBT::get_tiago_arm_group_name(BT::TreeNode& self)
return
BT
::
NodeStatus
::
SUCCESS
;
}
BT
::
NodeStatus
CTiagoArmModuleBT
::
get_tiago_arm_group_joints
(
BT
::
TreeNode
&
self
)
{
ROS_DEBUG
(
"CTiagoArmModuleBT::get_tiago_arm_group_joints-> get_tiago_arm_group_joints"
);
std
::
vector
<
std
::
string
>
joint_names
;
joint_names
=
this
->
tiago_arm_module
.
get_group_joints
();
self
.
setOutput
(
"joint_names"
,
joint_names
);
return
BT
::
NodeStatus
::
SUCCESS
;
}
BT
::
NodeStatus
CTiagoArmModuleBT
::
set_tiago_arm_max_planning_attempts
(
BT
::
TreeNode
&
self
)
{
ROS_DEBUG
(
"CTiagoArmModuleBT::set_tiago_arm_max_planning_attempts-> set_tiago_arm_max_planning_attempts"
);
...
...
This diff is collapsed.
Click to expand it.
src/xml/bt_test.xml
+
3
−
0
View file @
ebd458b7
...
...
@@ -70,6 +70,9 @@
<Action
ID=
"get_tiago_arm_group_name"
>
<output_port
name=
"group_id"
>
The group id
</output_port>
</Action>
<Action
ID=
"get_tiago_arm_group_joints"
>
<output_port
name=
"joint_names"
>
The group joints' names
</output_port>
</Action>
<Action
ID=
"set_tiago_arm_max_planning_attempts"
>
<input_port
name=
"num"
>
The num of maximum planning attempts
</input_port>
</Action>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment