Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ROS_Stateserver*.mod #35

Open
wants to merge 1 commit into
base: egm_modifications
Choose a base branch
from
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
10 changes: 5 additions & 5 deletions yumi_hw/rapid/ABB_driver/ROS_stateServer_left.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PROC main()
TPWrite "StateServer: Waiting for connection.";
ROS_init_socket server_socket, server_port;
ROS_wait_for_client server_socket, client_socket;

WHILE (TRUE) DO
send_joints;
WaitTime update_rate;
Expand All @@ -59,15 +59,15 @@ ENDPROC
LOCAL PROC send_joints()
VAR ROS_msg_joint_data message;
VAR jointtarget joints;

! get current joint position (degrees)
joints := CJointT();
joints := CJointT(\TaskName:="T_ROB_L");

! create message
message.header := [ROS_MSG_TYPE_JOINT, ROS_COM_TYPE_TOPIC, ROS_REPLY_TYPE_INVALID];
message.sequence_id := 0;
message.joints := joints;

! send message to client
ROS_send_msg_joint_data client_socket, message;

Expand Down
10 changes: 5 additions & 5 deletions yumi_hw/rapid/ABB_driver/ROS_stateServer_right.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PROC main()
TPWrite "StateServer: Waiting for connection.";
ROS_init_socket server_socket, server_port;
ROS_wait_for_client server_socket, client_socket;

WHILE (TRUE) DO
send_joints;
WaitTime update_rate;
Expand All @@ -59,15 +59,15 @@ ENDPROC
LOCAL PROC send_joints()
VAR ROS_msg_joint_data message;
VAR jointtarget joints;

! get current joint position (degrees)
joints := CJointT();
joints := CJointT(\TaskName:="T_ROB_R");

! create message
message.header := [ROS_MSG_TYPE_JOINT, ROS_COM_TYPE_TOPIC, ROS_REPLY_TYPE_INVALID];
message.sequence_id := 0;
message.joints := joints;

! send message to client
ROS_send_msg_joint_data client_socket, message;

Expand Down