Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Libraries/RosBridgeClient/Messages/Geometry/Transform.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
© HoloLab Inc., 2019
Author: Yusuke Furuta (furuta@hololab.co.jp)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using Newtonsoft.Json;

namespace RosSharp.RosBridgeClient.Messages.Geometry
{
public class Transform : Message
{
[JsonIgnore]
public const string RosMessageName = "geometry_msgs/Transform";
public Vector3 translation;
public Quaternion rotation;
public Transform()
{
translation = new Vector3();
rotation = new Quaternion();
}
}
}
34 changes: 34 additions & 0 deletions Libraries/RosBridgeClient/Messages/Geometry/TransformStamped.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
© HoloLab Inc., 2019
Author: Yusuke Furuta (furuta@hololab.co.jp)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using Newtonsoft.Json;

namespace RosSharp.RosBridgeClient.Messages.Geometry
{
public class TransformStamped : Message
{
[JsonIgnore]
public const string RosMessageName = "geometry_msgs/TransformStamped";
public string child_frame_id;
public Standard.Header header;
public Transform transform;
public TransformStamped()
{
header = new Standard.Header();
child_frame_id = "";
transform = new Transform();
}
}
}
32 changes: 32 additions & 0 deletions Libraries/RosBridgeClient/Messages/Navigation/Path.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
© HoloLab Inc., 2019
Author: Yusuke Furuta (furuta@hololab.co.jp)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using Newtonsoft.Json;

namespace RosSharp.RosBridgeClient.Messages.Navigation
{
public class Path : Message
{
[JsonIgnore]
public const string RosMessageName = "nav_msgs/Path";
public Standard.Header header;
public Geometry.PoseStamped[] poses;
public Path()
{
header = new Standard.Header();
poses = new Geometry.PoseStamped[0];
}
}
}
31 changes: 31 additions & 0 deletions Libraries/RosBridgeClient/Messages/TF2/TFMessage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
© HoloLab Inc., 2019
Author: Yusuke Furuta (furuta@hololab.co.jp)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

using Newtonsoft.Json;

namespace RosSharp.RosBridgeClient.Messages.TF2
{
public class TFMessage : Message
{
[JsonIgnore]
public const string RosMessageName = "tf2_msgs/TFMessage";
public Geometry.TransformStamped[] transforms;

public TFMessage()
{
transforms = new Geometry.TransformStamped[0];
}
}
}
227 changes: 115 additions & 112 deletions Libraries/RosBridgeClient/RosBridgeClient.csproj
Original file line number Diff line number Diff line change
@@ -1,119 +1,122 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{27CD898A-8840-4CDD-A475-4A672FD2EF50}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RosBridgeClient</RootNamespace>
<AssemblyName>RosBridgeClient</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="websocket-sharp, Version=1.0.2.59611, Culture=neutral, PublicKeyToken=5660b08a1845a91e, processorArchitecture=MSIL">
<HintPath>..\packages\WebSocketSharp.1.0.3-rc11\lib\websocket-sharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Messages\Actionlib\FibonacciActionFeedback.cs" />
<Compile Include="Messages\Actionlib\FibonacciActionGoal.cs" />
<Compile Include="Messages\Actionlib\FibonacciActionResult.cs" />
<Compile Include="Messages\Actionlib\FibonacciFeedback.cs" />
<Compile Include="Messages\Actionlib\FibonacciGoal.cs" />
<Compile Include="Messages\Actionlib\FibonacciResult.cs" />
<Compile Include="Messages\Geometry\Accel.cs" />
<Compile Include="Messages\Geometry\Point.cs" />
<Compile Include="Messages\Geometry\PointStamped.cs" />
<Compile Include="Messages\Geometry\Pose.cs" />
<Compile Include="Messages\Geometry\PoseStamped.cs" />
<Compile Include="Messages\Geometry\PoseWithCovariance.cs" />
<Compile Include="Messages\Geometry\Quaternion.cs" />
<Compile Include="Messages\Geometry\Twist.cs" />
<Compile Include="Messages\Geometry\TwistWithCovariance.cs" />
<Compile Include="Messages\Geometry\Vector3.cs" />
<Compile Include="Messages\Actionlib\GoalID.cs" />
<Compile Include="Messages\Actionlib\GoalStatus.cs" />
<Compile Include="Messages\Actionlib\GoalStatusArray.cs" />
<Compile Include="Messages\Navigation\MapMetaData.cs" />
<Compile Include="Messages\Navigation\OccupancyGrid.cs" />
<Compile Include="Messages\Navigation\Odometry.cs" />
<Compile Include="Messages\Sensor\CompressedImage.cs" />
<Compile Include="Messages\Sensor\Image.cs" />
<Compile Include="Messages\Sensor\JointState.cs" />
<Compile Include="Messages\Sensor\LaserScan.cs" />
<Compile Include="Messages\Sensor\Joy.cs" />
<Compile Include="Messages\Sensor\PointCloud2.cs" />
<Compile Include="Messages\Sensor\PointField.cs" />
<Compile Include="Messages\Standard\Header.cs" />
<Compile Include="Messages\Standard\Float64.cs" />
<Compile Include="Messages\Standard\Bool.cs" />
<Compile Include="Messages\Standard\Int32.cs" />
<Compile Include="Messages\Standard\String.cs" />
<Compile Include="Messages\Standard\Time.cs" />
<Compile Include="Communicators.cs" />
<Compile Include="Message.cs" />
<Compile Include="PointCloud.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Protocols\MessageEventArgs.cs" />
<Compile Include="Protocols\IProtocol.cs" />
<Compile Include="Protocols\WebSocketSharpProtocol.cs" />
<Compile Include="RosSocket.cs" />
<Compile Include="Communication.cs" />
<Compile Include="Services\FileServer\GetBinaryFile.cs" />
<Compile Include="Services\FileServer\SaveBinaryFile.cs" />
<Compile Include="Services\RosApi\GetParam.cs" />
<Compile Include="Services\RosApi\SetParam.cs" />
<Compile Include="Services\RosApi\Topics.cs" />
<Compile Include="Services\RosApi\Nodes.cs" />
<Compile Include="Services\Standard\Trigger.cs" />
<Compile Include="Protocols\WebSocketNetProtocol.cs" />
<Compile Include="UrdfTransfer\UrdfTransfer.cs" />
<Compile Include="UrdfTransfer\UrdfTransferFromRos.cs" />
<Compile Include="UrdfTransfer\UrdfTransferToRos.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{27CD898A-8840-4CDD-A475-4A672FD2EF50}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RosBridgeClient</RootNamespace>
<AssemblyName>RosBridgeClient</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json.Bson, Version=1.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.Bson.1.0.2\lib\net45\Newtonsoft.Json.Bson.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="websocket-sharp, Version=1.0.2.59611, Culture=neutral, PublicKeyToken=5660b08a1845a91e, processorArchitecture=MSIL">
<HintPath>..\packages\WebSocketSharp.1.0.3-rc11\lib\websocket-sharp.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Messages\Actionlib\FibonacciActionFeedback.cs" />
<Compile Include="Messages\Actionlib\FibonacciActionGoal.cs" />
<Compile Include="Messages\Actionlib\FibonacciActionResult.cs" />
<Compile Include="Messages\Actionlib\FibonacciFeedback.cs" />
<Compile Include="Messages\Actionlib\FibonacciGoal.cs" />
<Compile Include="Messages\Actionlib\FibonacciResult.cs" />
<Compile Include="Messages\Geometry\Accel.cs" />
<Compile Include="Messages\Geometry\Point.cs" />
<Compile Include="Messages\Geometry\PointStamped.cs" />
<Compile Include="Messages\Geometry\Pose.cs" />
<Compile Include="Messages\Geometry\PoseStamped.cs" />
<Compile Include="Messages\Geometry\PoseWithCovariance.cs" />
<Compile Include="Messages\Geometry\Quaternion.cs" />
<Compile Include="Messages\Geometry\Transform.cs" />
<Compile Include="Messages\Geometry\TransformStamped.cs" />
<Compile Include="Messages\Geometry\Twist.cs" />
<Compile Include="Messages\Geometry\TwistWithCovariance.cs" />
<Compile Include="Messages\Geometry\Vector3.cs" />
<Compile Include="Messages\Actionlib\GoalID.cs" />
<Compile Include="Messages\Actionlib\GoalStatus.cs" />
<Compile Include="Messages\Actionlib\GoalStatusArray.cs" />
<Compile Include="Messages\Navigation\MapMetaData.cs" />
<Compile Include="Messages\Navigation\OccupancyGrid.cs" />
<Compile Include="Messages\Navigation\Odometry.cs" />
<Compile Include="Messages\Sensor\CompressedImage.cs" />
<Compile Include="Messages\Sensor\Image.cs" />
<Compile Include="Messages\Sensor\JointState.cs" />
<Compile Include="Messages\Sensor\LaserScan.cs" />
<Compile Include="Messages\Sensor\Joy.cs" />
<Compile Include="Messages\Sensor\PointCloud2.cs" />
<Compile Include="Messages\Sensor\PointField.cs" />
<Compile Include="Messages\Standard\Header.cs" />
<Compile Include="Messages\Standard\String.cs" />
<Compile Include="Messages\Standard\Time.cs" />
<Compile Include="Communicators.cs" />
<Compile Include="Message.cs" />
<Compile Include="Messages\TF2\TFMessage.cs" />
<Compile Include="PointCloud.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Protocols\MessageEventArgs.cs" />
<Compile Include="Protocols\IProtocol.cs" />
<Compile Include="Protocols\WebSocketSharpProtocol.cs" />
<Compile Include="RosSocket.cs" />
<Compile Include="Communication.cs" />
<Compile Include="Services\FileServer\GetBinaryFile.cs" />
<Compile Include="Services\FileServer\SaveBinaryFile.cs" />
<Compile Include="Services\RosApi\GetParam.cs" />
<Compile Include="Services\RosApi\SetParam.cs" />
<Compile Include="Services\RosApi\Topics.cs" />
<Compile Include="Services\RosApi\Nodes.cs" />
<Compile Include="Services\Standard\Trigger.cs" />
<Compile Include="Protocols\WebSocketNetProtocol.cs" />
<Compile Include="UrdfTransfer\UrdfTransfer.cs" />
<Compile Include="UrdfTransfer\UrdfTransferFromRos.cs" />
<Compile Include="UrdfTransfer\UrdfTransferToRos.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
-->
</Project>
Loading