Skip to content
Snippets Groups Projects
Commit bbbda4e8 authored by Nirmal Giftsun's avatar Nirmal Giftsun
Browse files

fixed this error:floating-point literal cannot appear in a constant-expression

parent 97df0338
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
namespace dynamicgraph namespace dynamicgraph
{ {
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(RosJointState, "RosJointState"); DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(RosJointState, "RosJointState");
const double RosJointState::ROS_JOINT_STATE_PUBLISHER_RATE = 0.01;
namespace command namespace command
{ {
......
...@@ -21,7 +21,7 @@ namespace dynamicgraph ...@@ -21,7 +21,7 @@ namespace dynamicgraph
/// \brief Vector input signal. /// \brief Vector input signal.
typedef SignalPtr<ml::Vector, int> signalVectorIn_t; typedef SignalPtr<ml::Vector, int> signalVectorIn_t;
static const double ROS_JOINT_STATE_PUBLISHER_RATE = 1. / 100.; static const double ROS_JOINT_STATE_PUBLISHER_RATE;
RosJointState (const std::string& n); RosJointState (const std::string& n);
virtual ~RosJointState (); virtual ~RosJointState ();
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
namespace dynamicgraph namespace dynamicgraph
{ {
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(RosPublish, "RosPublish"); DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(RosPublish, "RosPublish");
const double RosPublish::ROS_JOINT_STATE_PUBLISHER_RATE = 0.01;
namespace command namespace command
{ {
......
...@@ -60,7 +60,7 @@ namespace dynamicgraph ...@@ -60,7 +60,7 @@ namespace dynamicgraph
callback_t> callback_t>
bindedSignal_t; bindedSignal_t;
static const double ROS_JOINT_STATE_PUBLISHER_RATE = 1. / 100.; static const double ROS_JOINT_STATE_PUBLISHER_RATE;
RosPublish (const std::string& n); RosPublish (const std::string& n);
virtual ~RosPublish (); virtual ~RosPublish ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment