Skip to content

Commit 589169b

Browse files
authored
Merge pull request #29 from Brazilian-Institute-of-Robotics/thruster_feedback
Add thruster feedback output port
2 parents 6cd2a38 + 820a931 commit 589169b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rock_gazebo.orogen

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ task_context "ThrusterTask" do
7070

7171
# Thruster input port
7272
input_port "thrusters_cmd", "/base/samples/Joints"
73+
# Thruster status port
74+
output_port "joint_samples", "/base/samples/Joints"
7375
end
7476

7577
task_context "LaserScanTask" do

tasks/ThrusterTask.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ void ThrusterTask::updateHook()
6868
gzmsg << "ThrusterTask: publisher has no connections. Going into exception" << endl;
6969
exception(NO_TOPIC_CONNECTION);
7070
}
71+
jointsCMD.time = base::Time::now();
72+
_joint_samples.write( jointsCMD );
7173
}
7274
}
7375

0 commit comments

Comments
 (0)