Skip to content

Instantly share code, notes, and snippets.

View alesolano's full-sized avatar
💭
Sourcing

Ale Solano alesolano

💭
Sourcing
  • Malaga, Spain
View GitHub Profile
#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();
#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();
#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)
#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>;
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):
#!/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.):
#!/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):
@alesolano
alesolano / algorithms_openpose.md
Last active August 26, 2021 19:47
OpenPose TensorFlow Alogrithms
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alesolano
alesolano / Robotics1718_First_Lab_Session.ipynb
Last active October 21, 2017 16:11
Exercises solved in Python of the 1st lab session of Robotics class 2017/18 at Universidad of Málaga.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.