-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nrc DriveCommand for nrc Motors
- Loading branch information
1 parent
a63e9db
commit d552972
Showing
13 changed files
with
80 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace RosSharp.RosBridgeClient.MessageTypes.Nrc | ||
{ | ||
public class NRCMotorsSubscriber : UnitySubscriber<Motors> | ||
{ | ||
private SimpleCarController car; | ||
|
||
protected override void Start() | ||
{ | ||
base.Start(); | ||
car = GetComponent<SimpleCarController>(); | ||
} | ||
|
||
protected override void ReceiveMessage(Motors motors) | ||
{ | ||
car.leftControl = motors.left; | ||
car.rightControl = motors.right; | ||
} | ||
} | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...rp Modules/DriveCommandSubscriber.cs.meta → ...Sharp Modules/NRCMotorsSubscriber.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* This message is auto generated by ROS#. Please DO NOT modify. | ||
* Note: | ||
* - Comments from the original code will be written in their own line | ||
* - Variable sized arrays will be initialized to array of size 0 | ||
* Please report any issues at | ||
* <https://github.com/siemens/ros-sharp> | ||
*/ | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace RosSharp.RosBridgeClient.MessageTypes.Nrc | ||
{ | ||
public class Motors : Message | ||
{ | ||
[JsonIgnore] | ||
public const string RosMessageName = "nrc_msgs/motors"; | ||
|
||
public float left; | ||
public float right; | ||
|
||
public Motors() | ||
{ | ||
this.left = 0.0f; | ||
this.right = 0.0f; | ||
} | ||
|
||
public Motors(float left, float right) | ||
{ | ||
this.left = left; | ||
this.right = right; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Build from DESKTOP-QVE6E0N at 2/3/2020 8:52:14 PM | ||
Build from DESKTOP-D8RUH2C at 2/11/2020 7:25:10 PM |