Skip to content

Commit

Permalink
adds new trajectory and nav ctrl messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bit-pirate committed Aug 22, 2014
1 parent 36ebbf5 commit 3826268
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 34 deletions.
35 changes: 25 additions & 10 deletions .cproject
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?>

<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.toolchain.gnu.base.1913250642">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.1913250642" moduleId="org.eclipse.cdt.core.settings" name="Default">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" id="cdt.managedbuild.toolchain.gnu.base.1913250642" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<configuration buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.base.1913250642" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="cdt.managedbuild.toolchain.gnu.base.1913250642.277313680" name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.base.1573811255" name="cdt.managedbuild.toolchain.gnu.base" superClass="cdt.managedbuild.toolchain.gnu.base">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.gnu.platform.base.1325303568" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
<builder id="cdt.managedbuild.target.gnu.builder.base.230040716" managedBuildOn="false" name="Gnu Make Builder.Default" superClass="cdt.managedbuild.target.gnu.builder.base"/>
<builder arguments="-f ${YUJIN_WORKSPACE}/build/${ProjName}/Makefile -j8" command="make" id="cdt.managedbuild.target.gnu.builder.base.230040716" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.base"/>
<tool id="cdt.managedbuild.tool.gnu.archiver.base.679557899" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.730706182" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.1271818185" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.730706182" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base">
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1913942811" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.1271818185" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1388175401" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.linker.base.888348919" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.1424808496" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/>
<tool id="cdt.managedbuild.tool.gnu.assembler.base.2047397035" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.1424808496" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base">
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.364378363" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.assembler.base.2047397035" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1711959858" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
Expand All @@ -40,4 +49,10 @@
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/yocs_msgs"/>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
</cproject>
41 changes: 17 additions & 24 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,25 @@ project(yocs_msgs)

find_package(catkin REQUIRED COMPONENTS actionlib_msgs std_msgs geometry_msgs std_srvs message_generation)

## Generate messages in the 'msg' folder
add_message_files(
FILES
Wall.msg
WallList.msg
Column.msg
ColumnList.msg
Table.msg
TableList.msg
Trajectory.msg
Waypoint.msg
WaypointList.msg
ARPair.msg
ARPairList.msg
)
add_message_files(FILES ARPair.msg
ARPairList.msg
Wall.msg
WallList.msg
Column.msg
ColumnList.msg
NavigationControl.msg
NavigationControlStatus.msg
Table.msg
TableList.msg
Trajectory.msg
TrajectoryList.msg
Waypoint.msg
WaypointList.msg)

add_service_files(
FILES
WaypointListService.srv
)
add_service_files(FILES WaypointListService.srv)

add_action_files(
DIRECTORY action
FILES
NavigateTo.action
)
add_action_files(DIRECTORY action
FILES NavigateTo.action)

generate_messages(DEPENDENCIES actionlib_msgs std_msgs geometry_msgs std_srvs)

Expand Down
9 changes: 9 additions & 0 deletions msg/NavigationControl.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Control the way point/trajectory navigation
int8 control

int8 STOP = 0
int8 START = 1
int8 PAUSE = 2

# Name of the way point(s) / trajectory to be execute/stopped/paused
string goal_name
11 changes: 11 additions & 0 deletions msg/NavigationControlStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Control the way point/trajectory navigation
int8 status

int8 ERROR = -1
int8 IDLING = 0
int8 RUNNING = 1
int8 COMPLETED = 2
int8 CANCELLED = 3

# Human-readable status description
string status_desc
2 changes: 2 additions & 0 deletions msg/TrajectoryList.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# A list of trajectories
Trajectory[] trajectories

0 comments on commit 3826268

Please sign in to comment.