MCPcopy Create free account
hub / github.com/InternRobotics/OpenHomie / handleActionLCM

Method handleActionLCM

HomieDeploy/unitree_sdk2/g1_control.cpp:252–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 }
251
252 void handleActionLCM(const lcm::ReceiveBuffer *rbuf, const std::string & chan, const pd_tau_targets_lcmt * msg){
253 (void) rbuf;
254 (void) chan;
255 joint_command_simple = *msg;
256
257 if (_firstCommandReceived == false){
258 _firstCommandReceived = true;
259 std::cout << "First command received" << std::endl;
260 }
261
262 }
263
264 void handleArmLCM(const lcm::ReceiveBuffer *rbuf, const std::string & chan, const arm_action_lcmt * msg){
265 (void) rbuf;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected