Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- remap from="joint_states" to="youbot_state"/> -->

<!-- start robot_state_publisher assuming /joint_states is the default topic -->
<node pkg="robot_state_publisher" type="state_publisher" name="robot_state_publisher" output="screen"/>
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher" output="screen"/>

<!-- start robot_state_publisher assuming /joint_states is not the default topic and the drivers default topics are used -->
<!--
Expand All @@ -19,4 +19,4 @@
</node>
-->

</launch>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,11 @@ int main(int argc, char **argv) {
command.positions = armJointPositions;

armPositionsPublisher = n.advertise<brics_actuator::JointPositions > ("arm_1/arm_controller/position_command", 1);
ros::spinOnce();

ros::Subscriber armTrajectory;
armTrajectory = n.subscribe("/arm_controller/follow_joint_trajectory/goal", 1, trajectoryCallback);

ros::Duration(1).sleep();
ros::spinOnce();

moveToInitPos(command);
//ros::Duration(10).sleep();
Expand Down