Mentions légales du service

Skip to content
Snippets Groups Projects

add CamPlayer, make player optional with in_sim attribute in CamPlayer

Merged Fabien Grzeskowiak requested to merge 21-Player-cam into master
34 files
+ 1176
131
Compare changes
  • Side-by-side
  • Inline
Files
34
@@ -17,7 +17,7 @@ using UnityEngine;
namespace RosSharp.RosBridgeClient
{
public class Float64Publisher : Publisher<Messages.Standard.Float64>
public class Float64Publisher : Publisher<Messages.Standard.Float64>, Publisher
{
public float PublishedFloat;
@@ -31,7 +31,7 @@ namespace RosSharp.RosBridgeClient
private void FixedUpdate()
{
UpdateMessage();
// UpdateMessage();
}
private void InitializeMessage()
@@ -39,7 +39,7 @@ namespace RosSharp.RosBridgeClient
message = new Messages.Standard.Float64();
message.data = 0.0f;
}
private void UpdateMessage()
public void UpdateMessage()
{
message.data = PublishedFloat;
Publish(message);
Loading