All code is highly based on Ildoo Kim's code (https://github.com/ildoonet/tf-openpose) and derived from the OpenPose Library (https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/LICENSE)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include "solution.h" | |
int main() | |
{ | |
std::vector<int> ns = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; | |
Solution* sol = new Solution(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include "solution.h" | |
int main() | |
{ | |
std::vector<int> prices = {5, 3, 7, 1, 5, 3, 6, 4}; | |
Solution* sol = new Solution(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "rclcpp/rclcpp.hpp" | |
#include "hrim_actuator_rotaryservo_msgs/msg/state_rotary_servo.hpp" | |
using std::placeholders::_1; | |
class MinimalSubscriber : public rclcpp::Node | |
{ | |
public: | |
MinimalSubscriber(): Node("minimal_subscriber"), | |
called(false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "rclcpp/rclcpp.hpp" | |
#include "rclcpp_action/rclcpp_action.hpp" | |
#include "hrim_actuator_rotaryservo_actions/action/goal_joint_trajectory.hpp" | |
#include <inttypes.h> | |
#include <memory> | |
using HRIMJointTrajectory = hrim_actuator_rotaryservo_actions::action::GoalJointTrajectory; | |
using GoalHandleHRIMJointTrajectory = rclcpp_action::ClientGoalHandle<HRIMJointTrajectory>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from action_msgs.msg import GoalStatus | |
from hrim_actuator_rotaryservo_actions.action import GoalJointTrajectory | |
from trajectory_msgs.msg import JointTrajectoryPoint | |
import rclpy | |
from rclpy.action import ActionClient | |
from rclpy.node import Node | |
class MinimalActionClient(Node): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import rclpy | |
from rclpy.node import Node | |
from rclpy.qos import qos_profile_sensor_data | |
from hrim_actuator_rotaryservo_msgs.msg import GoalRotaryServo | |
class MinimalPublisher(Node): | |
def __init__(self, init_pos=0.): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import rclpy | |
from rclpy.node import Node | |
from rclpy.qos import qos_profile_sensor_data | |
from hrim_actuator_rotaryservo_msgs.msg import GoalRotaryServo | |
class MinimalPublisher(Node): | |
def __init__(self): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.