A complete ROS action server and client implementation of the example_interfaces Fibonacci action is done, along with accompaning testbenches.
112 lines
5.9 KiB
Plaintext
112 lines
5.9 KiB
Plaintext
onerror {resume}
|
|
radix define ROS_RETCODE {
|
|
"10#0#" "ROS_RET_OK",
|
|
"10#1#" "ROS_RET_ERROR",
|
|
"10#2#" "ROS_RET_TIMEOUT",
|
|
"10#3#" "ROS_RET_UNSUPPORTED",
|
|
"10#10#" "ROS_RET_BAD_ALLOC",
|
|
"10#11#" "ROS_RET_INVALID_ARGUMENT",
|
|
"10#12#" "ROS_RET_INCORRECT_RMW_IMPLEMENTATION",
|
|
"10#100#" "ROS_RET_ALREADY_INIT",
|
|
"10#101#" "ROS_RET_NOT_INIT",
|
|
"10#102#" "ROS_RET_MISMATCHED_RMW",
|
|
"10#103#" "ROS_RET_TOPIC_NAME_INVALID",
|
|
"10#104#" "ROS_RET_SERVICE_NAME_INVALID",
|
|
"10#105#" "ROS_RET_UNKNOWN_SUBSTITUTION",
|
|
"10#106#" "ROS_RET_ALREADY_SHUTDOWN",
|
|
"10#200#" "ROS_RET_NODE_INVALID",
|
|
"10#201#" "ROS_RET_NODE_INVALID_NAME",
|
|
"10#202#" "ROS_RET_NODE_INVALID_NAMESPACE",
|
|
"10#203#" "ROS_RET_NODE_NAME_NON_EXISTENT",
|
|
"10#400#" "ROS_RET_SUBSCRIPTION_INVALID",
|
|
"10#401#" "ROS_RET_SUBSCRIPTION_TAKE_FAILED",
|
|
"10#500#" "ROS_RET_CLIENT_INVALID",
|
|
"10#501#" "ROS_RET_CLIENT_TAKE_FAILED",
|
|
"10#600#" "ROS_RET_SERVICE_INVALID",
|
|
"10#601#" "ROS_RET_SERVICE_TAKE_FAILED",
|
|
"10#800#" "ROS_RET_TIMER_INVALID",
|
|
"10#801#" "ROS_RET_TIMER_CANCELED",
|
|
"10#900#" "ROS_RET_WAIT_SET_INVALID",
|
|
"10#901#" "ROS_RET_WAIT_SET_EMPTY",
|
|
"10#902#" "ROS_RET_WAIT_SET_FULL",
|
|
"10#1001#" "ROS_RET_INVALID_REMAP_RULE",
|
|
"10#1002#" "ROS_RET_WRONG_LEXEME",
|
|
"10#1003#" "ROS_RET_INVALID_ROS_ARGS",
|
|
"10#1010#" "ROS_RET_INVALID_PARAM_RULE",
|
|
"10#1020#" "ROS_RET_INVALID_LOG_LEVEL_RULE",
|
|
"10#2001#" "ROS_RET_EVENT_TAKE_FAILED",
|
|
"10#2000#" "ROS_RET_ACTION_NAME_INVALID",
|
|
"10#2100#" "ROS_RET_ACTION_GOAL_ACCEPTED",
|
|
"10#2101#" "ROS_RET_ACTION_GOAL_REJECTED",
|
|
"10#2102#" "ROS_RET_ACTION_CLIENT_INVALID",
|
|
"10#2103#" "ROS_RET_ACTION_CLIENT_TAKE_FAILED",
|
|
"10#2200#" "ROS_RET_ACTION_SERVER_INVALID",
|
|
"10#2201#" "ROS_RET_ACTION_SERVER_TAKE_FAILED",
|
|
"10#2300#" "ROS_RET_ACTION_GOAL_HANDLE_INVALID",
|
|
"10#2301#" "ROS_RET_ACTION_GOAL_EVENT_INVALID",
|
|
"10#3000#" "ROS_RET_LIFECYCLE_STATE_REGISTERED",
|
|
"10#3001#" "ROS_RET_LIFECYCLE_STATE_NOT_REGISTERED",
|
|
-default unsigned
|
|
}
|
|
quietly WaveActivateNextPane {} 0
|
|
add wave -noupdate -divider SYSTEM
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/clk
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/reset
|
|
add wave -noupdate -divider CLIENT
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/start
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/opcode
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/ack
|
|
add wave -noupdate -radix hexadecimal /l1_fibonacci_ros_action_test1/uut_c/sequence_id
|
|
add wave -noupdate -radix hexadecimal /l1_fibonacci_ros_action_test1/uut_c/service_info
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/done
|
|
add wave -noupdate -radix ROS_RETCODE /l1_fibonacci_ros_action_test1/uut_c/return_code
|
|
add wave -noupdate -group GOAL_C /l1_fibonacci_ros_action_test1/uut_c/goal_srv_client_inst/stage
|
|
add wave -noupdate -group GOAL_C /l1_fibonacci_ros_action_test1/uut_c/goal_srv_client_inst/cnt
|
|
add wave -noupdate -expand -group RESULT_C /l1_fibonacci_ros_action_test1/uut_c/result_srv_client_inst/stage
|
|
add wave -noupdate -expand -group RESULT_C /l1_fibonacci_ros_action_test1/uut_c/result_srv_client_inst/cnt
|
|
add wave -noupdate -expand -group CANCEL_C /l1_fibonacci_ros_action_test1/uut_c/cancel_srv_client_inst/stage
|
|
add wave -noupdate -expand -group CANCEL_C /l1_fibonacci_ros_action_test1/uut_c/cancel_srv_client_inst/cnt
|
|
add wave -noupdate -group FEEDBACK_C /l1_fibonacci_ros_action_test1/uut_c/stage
|
|
add wave -noupdate -group FEEDBACK_C /l1_fibonacci_ros_action_test1/uut_c/cnt
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/stage
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_c/cnt
|
|
add wave -noupdate -divider SERVER
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/start
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/opcode
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/ack
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/done
|
|
add wave -noupdate -radix ROS_RETCODE /l1_fibonacci_ros_action_test1/uut_s/return_code
|
|
add wave -noupdate -group GOAL_S /l1_fibonacci_ros_action_test1/uut_s/goal_srv_server_inst/stage
|
|
add wave -noupdate -group GOAL_S /l1_fibonacci_ros_action_test1/uut_s/goal_srv_server_inst/cnt
|
|
add wave -noupdate -expand -group RESULT_S /l1_fibonacci_ros_action_test1/uut_s/result_srv_server_inst/stage
|
|
add wave -noupdate -expand -group RESULT_S /l1_fibonacci_ros_action_test1/uut_s/result_srv_server_inst/cnt
|
|
add wave -noupdate -group CANCEL_S /l1_fibonacci_ros_action_test1/uut_s/cancel_srv_server_inst/stage
|
|
add wave -noupdate -group CANCEL_S /l1_fibonacci_ros_action_test1/uut_s/cancel_srv_server_inst/cnt
|
|
add wave -noupdate -group FEEDBACK_S /l1_fibonacci_ros_action_test1/uut_s/feedback_gen/feedback_pub_inst/stage
|
|
add wave -noupdate -group FEEDBACK_S /l1_fibonacci_ros_action_test1/uut_s/feedback_gen/feedback_pub_inst/cnt
|
|
add wave -noupdate -group STATUS_S /l1_fibonacci_ros_action_test1/uut_s/status_pub_inst/stage
|
|
add wave -noupdate -group STATUS_S /l1_fibonacci_ros_action_test1/uut_s/status_pub_inst/cnt
|
|
add wave -noupdate -group ACTION_SERVER /l1_fibonacci_ros_action_test1/uut_s/action_server_inst/stage
|
|
add wave -noupdate -group ACTION_SERVER /l1_fibonacci_ros_action_test1/uut_s/action_server_inst/cnt
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/stage
|
|
add wave -noupdate /l1_fibonacci_ros_action_test1/uut_s/cnt
|
|
add wave -noupdate -divider MISC
|
|
TreeUpdate [SetDefaultTree]
|
|
WaveRestoreCursors {{Cursor 1} {1890595 ps} 0}
|
|
quietly wave cursor active 1
|
|
configure wave -namecolwidth 150
|
|
configure wave -valuecolwidth 100
|
|
configure wave -justifyvalue left
|
|
configure wave -signalnamewidth 1
|
|
configure wave -snapdistance 10
|
|
configure wave -datasetprefix 0
|
|
configure wave -rowmargin 4
|
|
configure wave -childrowmargin 2
|
|
configure wave -gridoffset 0
|
|
configure wave -gridperiod 1
|
|
configure wave -griddelta 40
|
|
configure wave -timeline 0
|
|
configure wave -timelineunits ns
|
|
update
|
|
WaveRestoreZoom {1314200 ps} {2338200 ps}
|