Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
franka_description
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Nikhil Ambardar
franka_description
Commits
d4b4a572
Commit
d4b4a572
authored
5 years ago
by
Christoph Jähne
Browse files
Options
Downloads
Patches
Plain Diff
remove const in header for pass by value params
parent
047e4e05
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
franka_hw/include/franka_hw/franka_combinable_hw.h
+4
-4
4 additions, 4 deletions
franka_hw/include/franka_hw/franka_combinable_hw.h
franka_hw/include/franka_hw/franka_hw.h
+5
-5
5 additions, 5 deletions
franka_hw/include/franka_hw/franka_hw.h
with
9 additions
and
9 deletions
franka_hw/include/franka_hw/franka_combinable_hw.h
+
4
−
4
View file @
d4b4a572
...
...
@@ -144,16 +144,16 @@ class FrankaCombinableHW : public FrankaHW {
return
current_cmd
;
}
void
publishErrorState
(
const
bool
error
);
void
publishErrorState
(
bool
error
);
void
setupServicesAndActionServers
(
ros
::
NodeHandle
&
node_handle
);
void
initRobot
()
override
;
bool
setRunFunction
(
const
ControlMode
&
requested_control_mode
,
const
bool
limit_rate
,
const
double
cutoff_frequency
,
const
franka
::
ControllerMode
internal_controller
)
override
;
bool
limit_rate
,
double
cutoff_frequency
,
franka
::
ControllerMode
internal_controller
)
override
;
void
controlLoop
();
...
...
This diff is collapsed.
Click to expand it.
franka_hw/include/franka_hw/franka_hw.h
+
5
−
5
View file @
d4b4a572
...
...
@@ -262,7 +262,7 @@ class FrankaHW : public hardware_interface::RobotHW {
* @return True if the array contains NaN values, false otherwise.
*/
template
<
size_t
size
>
static
bool
arrayHasNaN
(
const
std
::
array
<
double
,
size
>
array
)
{
static
bool
arrayHasNaN
(
const
std
::
array
<
double
,
size
>
&
array
)
{
return
std
::
any_of
(
array
.
begin
(),
array
.
end
(),
[](
const
double
&
e
)
{
return
std
::
isnan
(
e
);
});
}
...
...
@@ -365,7 +365,7 @@ class FrankaHW : public hardware_interface::RobotHW {
template
<
typename
T
>
void
setupJointCommandInterface
(
std
::
array
<
double
,
7
>&
command
,
franka
::
RobotState
&
state
,
const
bool
use_q_d
,
bool
use_q_d
,
T
&
interface
)
{
for
(
size_t
i
=
0
;
i
<
joint_names_
.
size
();
i
++
)
{
hardware_interface
::
JointStateHandle
state_handle
;
...
...
@@ -427,9 +427,9 @@ class FrankaHW : public hardware_interface::RobotHW {
* @return True if successful, false otherwise.
*/
virtual
bool
setRunFunction
(
const
ControlMode
&
requested_control_mode
,
const
bool
limit_rate
,
const
double
cutoff_frequency
,
const
franka
::
ControllerMode
internal_controller
);
bool
limit_rate
,
double
cutoff_frequency
,
franka
::
ControllerMode
internal_controller
);
/**
* Uses the robot_ip_ to connect to the robot via libfranka and loads the libfranka model.
*/
...
...
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