Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_tiago_nav_module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
platforms
TIAGo
iri_tiago_nav_module
Commits
e1f92134
Commit
e1f92134
authored
6 years ago
by
Irene Garcia Camacho
Browse files
Options
Downloads
Patches
Plain Diff
Changed name of file from move_base_module.h to move_platform_module.h
parent
3c8cc62c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/tiago_modules/move_base_module.h
+0
-77
0 additions, 77 deletions
include/tiago_modules/move_base_module.h
with
0 additions
and
77 deletions
include/tiago_modules/move_base_module.h
deleted
100644 → 0
+
0
−
77
View file @
3c8cc62c
#ifndef _MOVE_PLATFORM_MODULE_H
#define _MOVE_PLATFORM_MODULE_H
#include
<iri_ros_tools/module.h>
#include
<iri_ros_tools/module_action.h>
#include
<tiago_modules/MovePlatformModuleConfig.h>
//Action
#include
<moveit_msgs/MoveGroupAction.h>
#include
<moveit_msgs/GetPlanningScene.h>
#include
<geometry_msgs/PoseStamped.h>
#include
<geometry_msgs/QuaternionStamped.h>
#include
<sensor_msgs/JointState.h>
#include
<cmath>
#include
<ros/timer.h>
#include
<nav_msgs/Odometry.h>
#include
<geometry_msgs/Twist.h>
#include
<geometry_msgs/Pose.h>
//States
typedef
enum
{
MOVE_PLATFORM_MODULE_IDLE
,
MOVE_PLATFORM_MODULE_START
,
MOVE_PLATFORM_MODULE_WAIT
}
move_platform_module_state_t
;
//Status
typedef
enum
{
MOVE_PLATFORM_MODULE_RUNNING
,
MOVE_PLATFORM_MODULE_SUCCESS
,
MOVE_PLATFORM_MODULE_STOPPED
}
move_platform_module_status_t
;
class
CMovePlatformModule
:
public
CModule
<
move_platform_module
::
MovePlatformModuleConfig
>
{
private:
move_platform_module
::
MovePlatformModuleConfig
config
;
// odometry
CROSWatchdog
joint_states_watchdog
;
ros
::
Subscriber
odom_subscriber
;
nav_msgs
::
Odometry
target_odom
;
geometry_msgs
::
Pose
goal
;
void
odom_callback
(
const
nav_msgs
::
Odometry
::
ConstPtr
&
msg
);
//Variables
move_platform_module_state_t
state
;
move_platform_module_status_t
status
;
bool
new_position
;
bool
cancel_pending
;
// cmd vel publisher
ros
::
Publisher
cmd_vel_publisher
;
geometry_msgs
::
Twist
cmd_vel_goal
;
ros
::
Timer
cmd_vel_timer
;
double
distance_tol
;
double
target
;
bool
target_achieved
;
double
velocity
;
protected:
void
state_machine
(
void
);
void
reconfigure_callback
(
move_platform_module
::
MovePlatformModuleConfig
&
config
,
uint32_t
level
);
void
cmd_vel_pub
(
const
ros
::
TimerEvent
&
event
);
public:
CMovePlatformModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
=
std
::
string
(
""
));
// general functions
void
move_platform
(
double
distance
);
void
get_current_pose
(
geometry_msgs
::
PoseStamped
&
pose
);
void
stop
(
void
);
bool
is_finished
(
void
);
move_platform_module_status_t
get_status
(
void
);
~
CMovePlatformModule
();
};
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment