rm_controllers
Loading...
Searching...
No Matches
omni.h
Go to the documentation of this file.
1//
2// Created by qiayuan on 2022/7/29.
3//
4
5#pragma once
6
7#include <Eigen/Dense>
8
10
12{
13class OmniController : public ChassisBase<rm_control::RobotStateInterface, hardware_interface::EffortJointInterface>
14{
15public:
16 OmniController() = default;
17 bool init(hardware_interface::RobotHW* robot_hw, ros::NodeHandle& root_nh, ros::NodeHandle& controller_nh) override;
18
19private:
20 geometry_msgs::Twist odometry() override;
21
22 std::vector<std::shared_ptr<effort_controllers::JointVelocityController>> joints_;
23 Eigen::MatrixXd chassis2joints_;
24
25protected:
26 void moveJoint(const ros::Time& time, const ros::Duration& period) override;
27};
28
29} // namespace rm_chassis_controllers
Definition chassis_base.h:95
void moveJoint(const ros::Time &time, const ros::Duration &period) override
Definition omni.cpp:54
bool init(hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh) override
Definition omni.cpp:15
Definition active_suspension.h:16