projects
/
gazebo_ros_electrical.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525d565
)
Fix namespace bug.
author
Walter Fetter Lages
<w.fetter@ieee.org>
Sun, 18 Nov 2018 07:26:12 +0000
(
05:26
-0200)
committer
Walter Fetter Lages
<w.fetter@ieee.org>
Sun, 18 Nov 2018 07:26:12 +0000
(
05:26
-0200)
src/dcmotor_robot_hw_sim.cpp
patch
|
blob
|
history
diff --git
a/src/dcmotor_robot_hw_sim.cpp
b/src/dcmotor_robot_hw_sim.cpp
index
e5ea0b6
..
02fb28a
100644
(file)
--- a/
src/dcmotor_robot_hw_sim.cpp
+++ b/
src/dcmotor_robot_hw_sim.cpp
@@
-274,7
+274,7
@@
bool DCmotorRobotHWSim::initSim(
}
if (joint_control_methods_[j] == VOLTAGE)
{
- const ros::NodeHandle nh(
model_nh,
"/gazebo_ros_electrical/dcmotor/"+joint_names_[j]);
+ const ros::NodeHandle nh(
robot_namespace +
"/gazebo_ros_electrical/dcmotor/"+joint_names_[j]);
if (!nh.getParam("Ra",joint_resistance_[j]))
{
ROS_ERROR("No Ra specified for D.C motor. Namespace: %s", nh.getNamespace().c_str());