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

Shortened node name length to work around issue with longer names. #28

Open
wants to merge 1 commit into
base: master
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
2 changes: 1 addition & 1 deletion src/modules/left_locomotion/left_locomotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static uint32_t error_flag;
extern "C" void task_left_locomotion_fn(void) {
ros_echronos::ROS_INFO("Entered CAN task. Initializing...\n");
ros_echronos::NodeHandle nh;
nh.init("left_locomotion_fn", "left_locomotion_fn", RTOS_INTERRUPT_EVENT_ID_CAN_RECEIVE_EVENT, RTOS_SIGNAL_ID_CAN_RECEIVE_SIGNAL, RTOS_SIGNAL_ID_ROS_PROMISE_SIGNAL);
nh.init("left", "left", RTOS_INTERRUPT_EVENT_ID_CAN_RECEIVE_EVENT, RTOS_SIGNAL_ID_CAN_RECEIVE_SIGNAL, RTOS_SIGNAL_ID_ROS_PROMISE_SIGNAL);
ros_echronos::ROS_INFO("Done init\n");

ros_echronos::ROS_INFO("Initalising left locomotion subscribers\n");
Expand Down
2 changes: 1 addition & 1 deletion src/modules/right_locomotion/right_locomotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static uint32_t error_flag;
extern "C" void task_right_locomotion_fn(void) {
ros_echronos::ROS_INFO("Entered CAN task. Initializing...\n");
ros_echronos::NodeHandle nh;
nh.init("right_locomotion_fn", "right_locomotion_fn", RTOS_INTERRUPT_EVENT_ID_CAN_RECEIVE_EVENT, RTOS_SIGNAL_ID_CAN_RECEIVE_SIGNAL, RTOS_SIGNAL_ID_ROS_PROMISE_SIGNAL);
nh.init("right", "right", RTOS_INTERRUPT_EVENT_ID_CAN_RECEIVE_EVENT, RTOS_SIGNAL_ID_CAN_RECEIVE_SIGNAL, RTOS_SIGNAL_ID_ROS_PROMISE_SIGNAL);
ros_echronos::ROS_INFO("Done init\n");

ros_echronos::ROS_INFO("Initalising right locomotion subscribers\n");
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ros_sub_test/ros_sub_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern "C" void task_ros_sub_test_fn(void) {
ros_echronos::ROS_INFO("Done init\n");

ros_echronos::ROS_INFO("sub init\n");
ros_echronos::Subscriber<owr_messages::pwm> sub("aaa", (owr_messages::pwm*)pwm_buffer, 5, callback);
ros_echronos::Subscriber<owr_messages::pwm> sub("/aaa", (owr_messages::pwm*)pwm_buffer, 5, callback);
sub.init(nh, RTOS_SIGNAL_ID_ROS_PROMISE_SIGNAL);
ros_echronos::ROS_INFO("starting the main loop\n");
owr_messages::pwm msg;
Expand Down