File tree 2 files changed +14
-8
lines changed
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,18 @@ reactor mpc_controller {
45
45
self->node_shared_ptr = std::shared_ptr<motion::control::mpc_controller_nodes::MpcControllerNode>(self->node);
46
46
//std::cout << self->node->m_controller->get_base_config().safe_deceleration_rate() << std::endl;
47
47
48
- // Spawn thread to spin node for tf stuff
49
- pthread_t spinner_thread;
50
- pthread_create(
51
- &spinner_thread,
52
- NULL,
53
- &spin_node<std::shared_ptr<motion::control::mpc_controller_nodes::MpcControllerNode>>,
54
- static_cast<void*>(new std::shared_ptr<motion::control::mpc_controller_nodes::MpcControllerNode>(self->node_shared_ptr)));
48
+ // Spawn thread to spin node for tf stuff (FIXME: Causes a segfault)
49
+ // pthread_t spinner_thread;
50
+ // pthread_create(
51
+ // &spinner_thread,
52
+ // NULL,
53
+ // &spin_node<std::shared_ptr<motion::control::mpc_controller_nodes::MpcControllerNode>>,
54
+ // static_cast<void*>(new std::shared_ptr<motion::control::mpc_controller_nodes::MpcControllerNode>(self->node_shared_ptr)));
55
+ =}
56
+
57
+ timer ros_spin(0, 1 msec);
58
+ reaction(ros_spin) {=
59
+ rclcpp::spin_some(self->node_shared_ptr);
55
60
=}
56
61
57
62
// The order of reactions is important.
Original file line number Diff line number Diff line change 1
1
target CCpp {
2
- coordination: decentralized
2
+ coordination: decentralized,
3
+ build-type: RelWithDebInfo
3
4
};
4
5
5
6
import lgsvl_interface from "../../src/lgsvl_interface/lgsvl_interface_main.lf"
You can’t perform that action at this time.
0 commit comments